Description
Black has a hue of 0°, saturation 0% and lightness 0%, which places it in the black family. Its strongest channel is red (0).
Using black in CSS
.title { color: black; }
.box { background: black; border-color: #000000; }
.soft { background: rgb(0 0 0 / 20%); } /* black at 20% opacity */Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.
Similar named colors
| Color | HEX | RGB | ΔE 2000 |
|---|---|---|---|
| darkslategray | #2f4f4f | 47, 79, 79 | 24.3 |
| midnightblue | #191970 | 25, 25, 112 | 27.3 |
| navy | #000080 | 0, 0, 128 | 29.7 |
| darkblue | #00008b | 0, 0, 139 | 30.6 |
| indigo | #4b0082 | 75, 0, 130 | 30.7 |
| maroon | #800000 | 128, 0, 0 | 30.8 |
| darkslateblue | #483d8b | 72, 61, 139 | 31.4 |
| dimgray | #696969 | 105, 105, 105 | 31.5 |
ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.
Pairs well with
Readability
Contrast with white text: 21.00:1; with black text: 1.00:1. White body text on black meets WCAG AA.