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
Black 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%);
}
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
- Gray#808080rgb(128, 128, 128)
- Silver#C0C0C0rgb(192, 192, 192)
- White#FFFFFFrgb(255, 255, 255)
- Taupe#483C32rgb(72, 60, 50)
- Charcoal#36454Frgb(54, 69, 79)
- Hunter green#355E3Brgb(53, 94, 59)
See all popular colors · All HTML color names · Open black in the color picker