Home / Colors / Black hex code

Black hex code

All three channels off: the darkest color a screen can show.

#000000 Black
HEX#000000
RGBrgb(0, 0, 0)
HSLhsl(0, 0%, 0%)
HSVhsv(0, 0%, 0%)
CMYKcmyk(0%, 0%, 0%, 100%)
Advertisement

About black

All three channels off: the darkest color a screen can show. Its hex code is #000000, which is rgb(0, 0, 0): 0 red, 0 green and 0 blue on a scale of 0 to 255.

Black is a neutral color, so it pairs easily with almost anything.

Black tints and shades

Lighter tints (mixed with white) and darker shades (mixed with black) of black. Click any of them to copy its hex code.

Colors that go with black

Because black is a neutral, it works with nearly any color. Bold accents stand out against it, and the tints and shades above give you a matching set of grays.

Popular accents

Text on black

White text

21.00:1 · Passes AAA for all text

Black text

1.00:1 · Fails for text

For readable text, WCAG asks for a contrast ratio of at least 4.5:1 (3:1 for large text). White text is the better choice on black. Test other combinations with the contrast checker.

Using black in CSS

.element {
  color: #000000;
  background-color: rgb(0 0 0);
  border-color: hsl(0 0% 0%);
}
Advertisement

Frequently asked questions

What is the hex code for black?

Black is #000000. In RGB it's rgb(0, 0, 0), and in HSL it's hsl(0, 0%, 0%).

What colors go with black?

As a neutral, black goes with almost any color. Black also pairs well with white.

Is black warm or cool?

Black is a neutral color, so it pairs easily with almost anything.

Should I use white or black text on black?

Use white text. Its contrast ratio on black is 21.00:1, versus 1.00:1 for black.

Similar colors

See all popular colors · All HTML color names · Open black in the color picker

Advertisement