Skip to content
PantoneTools
black
CSS Named Colors

Black

black · #000000

HEX

#000000

RGB

rgb(0, 0, 0)

CMYK

cmyk(0%, 0%, 0%, 100%)

HSL

hsl(0, 0%, 0%)

LAB

lab(0.0, 0.0, 0.0)

What is Black?

Black is the black reference in the CSS Named Colors. Its sRGB value is #000000 (rgb 0, 0, 0). It sits in the black family. The 147 named colors defined by the W3C CSS Color Module Level 4 specification — usable directly in CSS as keywords like 'crimson' or 'rebeccapurple'. See disclaimer for accuracy and trademark notes.

Accessibility

WCAG 2.1 contrast checks for Black as a background.

Black text on this color

Sample text · 1.00 : 1
AA Normal
AA Large
AAA Normal
AAA Large

White text on this color

Sample text · 21.00 : 1
AA Normal
AA Large
AAA Normal
AAA Large

Shades, tints & tonal scale of Black

An 11-step tonal scale derived from Black (#000000). Click any swatch to copy its HEX. Use these as a starting point for design tokens, hover states, and disabled states in a design system.

Copied #EBEBEB

50

#EBEBEB

#EBEBEB

Copied #D6D6D6

100

#D6D6D6

#D6D6D6

Copied #ADADAD

200

#ADADAD

#ADADAD

Copied #808080

300

#808080

#808080

Copied #404040

400

#404040

#404040

Copied #000000

500

#000000

#000000

Copied #000000

600

#000000

#000000

Copied #000000

700

#000000

#000000

Copied #000000

800

#000000

#000000

Copied #000000

900

#000000

#000000

Copied #000000

950

#000000

#000000

Lighter tints (mixed with white)

Copied #6C6C6C

15%

#6C6C6C

Copied #959595

30%

#959595

Copied #B3B3B3

45%

#B3B3B3

Copied #CBCBCB

60%

#CBCBCB

Copied #E1E1E1

75%

#E1E1E1

Darker shades (mixed with black)

Copied #000000

15%

#000000

Copied #000000

30%

#000000

Copied #000000

45%

#000000

Copied #000000

60%

#000000

Copied #000000

75%

#000000

Color harmonies for Black

Classic color-theory harmonies derived from rotating the hue of Black. Use these to build accent palettes, brand systems, and accessible UI color pairings.

Complementary

180° opposite — strongest contrast

Copied #000000

#000000

#000000

Copied #000000

#000000

#000000

Triadic

Three colors 120° apart

Copied #000000

#000000

#000000

Copied #000000

#000000

#000000

Copied #000000

#000000

#000000

Analogous

Two neighbors ±30° on the wheel

Copied #000000

#000000

#000000

Copied #000000

#000000

#000000

Copied #000000

#000000

#000000

Split-complementary

Base + two colors flanking its complement

Copied #000000

#000000

#000000

Copied #000000

#000000

#000000

Copied #000000

#000000

#000000

Tetradic

Two complementary pairs

Copied #000000

#000000

#000000

Copied #000000

#000000

#000000

Copied #000000

#000000

#000000

Copied #000000

#000000

#000000

Square

Four colors evenly spaced 90° apart

Copied #000000

#000000

#000000

Copied #000000

#000000

#000000

Copied #000000

#000000

#000000

Copied #000000

#000000

#000000

Black in every color space

Full conversion of Black across the color spaces designers and developers actually use — including OKLCH (the perceptually-uniform space that powers Tailwind v4 and CSS Color Module Level 4) and HWB.

HEX

#000000

RGB

rgb(0, 0, 0)

CMYK

cmyk(0%, 0%, 0%, 100%)

HSL

hsl(0, 0%, 0%)

HSV

hsv(0, 0%, 0%)

HWB

hwb(0 0% 100%)

CIE Lab

lab(0.0 0.0 0.0)

OKLCH

oklch(0.0% 0.000 0.0)

XYZ (D65)

xyz(0.00, 0.00, 0.00)

Copy-ready code for Black

Drop-in snippets for CSS, Tailwind, Sass, iOS Swift, and Android XML. Click the copy button on any snippet to put it on your clipboard.

CSS

color: #000000;
background-color: #000000;

CSS variable

:root {
  --color-black: #000000;
}

Tailwind config

// tailwind.config.js
colors: {
  'black': '#000000',
}

Sass

$color-black: #000000;

Swift UIColor

UIColor(red: 0.000, green: 0.000, blue: 0.000, alpha: 1.0)

Android XML

<color name="black">#000000</color>

Closest match in every color system

The nearest Black equivalent in every other color system on this site, ranked by ΔE2000 perceptual distance. Useful when translating between design-system, web-standard, and industrial color references.

Closest in CSS Named Colors

Top 6 ΔE2000-closest entries within the same collection.

Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.

Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.

Copied #0A0A0A

RAL 9005

#0A0A0A

Jet black

Copied #1C1C1C

RAL 9011

#1C1C1C

Graphite black

Copied #18171C

RAL 5004

#18171C

Black blue

Copied #1E1E1E

RAL 9017

#1E1E1E

Traffic black

Copied #212121

RAL 8022

#212121

Black brown

Copied #25221B

RAL 6022

#25221B

Olive drab

FAQ about Black

What is the HEX code for Black?

Black (black) has the HEX code #000000. In RGB it is rgb(0, 0, 0), and in CMYK it is cmyk(0%, 0%, 0%, 100%).

What is the OKLCH value of Black?

Black converts to oklch(0.000 0.000 0.0). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Black accessible for body text?

Used as a background, Black has a contrast ratio of 1.00:1 with black text and 21.00:1 with white text. WCAG 2.1 AA requires 4.5:1 for normal text. The current recommendation is to use white text and verify in real UI context.

What is the closest Pantone to Black?

The closest Pantone reference to Black by ΔE2000 perceptual distance is Pantone Process Black C (#000000). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.

What is the closest RAL color to Black?

The closest RAL Classic reference to Black by ΔE2000 distance is RAL 9005 (Jet black, #0A0A0A). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Black?

The complementary color (180° opposite on the HSL color wheel) of Black is #000000. Use it for high-contrast accents, error states, or call-to-action pairings.

Data provenance & source

CSS Named Colors (CSS Color Module Level 4)

The 147 named colors defined by the W3C CSS Color Module Level 4 specification. Origin: VGA (16) + X11 (rest) + 'rebeccapurple'. Use as a reference for web color names that all browsers natively support. Names like 'crimson' or 'rebeccapurple' work as CSS values without any framework.

Source type
derived
Confidence
high
License
W3C permissive document license
Last reviewed
2026-05-24

Workflow tags

css
web-standard
named-keyword
black

CSS named colors are sRGB digital values defined for browsers. For print, convert to a process-appropriate color and proof against substrate.

CSS Named Colors · Black — #000000 | PantoneTools