black black #000000

black is #000000 in hexadecimal, rgb(0, 0, 0) in decimal and hsl(0, 0, 0) in HSL. This page lists its harmonies, lightness steps and contrast against black and white — all copyable.

HEX · RGB · HSL

#000000
HEX#000000
RGBrgb(0, 0, 0)
HSLhsl(0, 0%, 0%)

Harmonies

Complementary

Analogous

Triadic

Split complementary

Tints & shades

#0a0a0a#0a0a0a#0a0a0a#0a0a0a#0a0a0a

Accessibility

vs #ffffff21:1
vs #0000001:1
Suggested text color#ffffff · 21:1 · WCAG AAA

Similar named colors

darkgreen#006400midnightblue#191970darkslategray#2f4f4fdarkslategrey#2f4f4fgreen#008000maroon#800000

FAQ

What is the HEX code for black?

black is #000000 in hex, rgb(0, 0, 0) in decimal and hsl(0, 0%, 0%) in HSL. In CSS you can write either color: black; or color: #000000; — they are equivalent.

What colors go with black?

The complementary #000000 gives the strongest contrast, the analogous pair #000000 / #000000 is the safest, and the triad #000000 / #000000 adds more tension. All three are derived from the 0° hue of #000000.

Does #000000 read better on white or black?

Its contrast is 21:1 against white and 1:1 against black. Use #ffffff text on it — that gives 21:1, which meets WCAG AAA.

Is a named color different from a hex color?

No. CSS named colors are just syntactic sugar for standard six-digit hex values; browsers resolve them to identical results in every modern engine.

← All named colors