About black
black (#000000) has all three channels at zero. Its short form is #000.
Black text on white has the highest possible contrast ratio, 21:1. For a softer look, some designs use a dark gray for body text instead, such as darkslategray (#2F4F4F) or the lighter dimgray (#696969).
Tints of black
Black is darker than a usual 950 step, so it ends the scale and every other step is lighter and brighter. The steps follow a lightness curve modeled on Tailwind CSS's default palette; build your own in the Tailwind color generator. For black mixed with white, black or gray in even steps, use the tint and shade generator.
Colors that go with black
Black is a neutral color, so hue-based harmonies do not apply: it goes with any hue. Pair it with one accent color, or build a palette in the palette generator.
Text on black
| Text | Ratio | AA normal | AA large | AAA normal |
|---|---|---|---|---|
| White | 21:1 | Pass | Pass | Pass |
| Black | 1:1 | Fail | Fail | Fail |
The ratio is the same either way round, so black text on a white background is also 21:1. Check other pairs in the color contrast checker.
Similar named colors
The CSS named colors closest to black, by deltaE OK distance.
See all 148 on the color names page.
Closest Tailwind CSS colors
black v4: black, #000000, exact match
black v3: black, #000000, exact match
Tailwind CSS has black as its own color, so bg-black and text-black give exactly #000000. A deltaE OK of around 0.02 is roughly the smallest difference most people notice side by side. Browse every shade on the Tailwind CSS colors page.
Black with color vision deficiency
Black has almost no hue, so it looks the same with any type of color vision deficiency. What matters is its lightness contrast with the colors next to it.
Test a whole palette or image in the color blindness simulator.
Using black in code
.example {
color: black; /* named color */
background-color: #000000; /* hex */
border-color: rgb(0, 0, 0);
}
