Description
Darkgray has a hue of 0°, saturation 0% and lightness 66%, which places it in the gray family. The "dark" prefix is part of the CSS name, but CSS names are not systematic: for example darkgray (#A9A9A9) is lighter than gray (#808080). It is identical to darkgrey; both keywords produce #A9A9A9.
Using darkgray in CSS
.title { color: darkgray; }
.box { background: darkgray; border-color: #a9a9a9; }
.soft { background: rgb(169 169 169 / 20%); } /* darkgray 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 |
|---|---|---|---|
| silver | #c0c0c0 | 192, 192, 192 | 6.3 |
| lightgray | #d3d3d3 | 211, 211, 211 | 11 |
| gainsboro | #dcdcdc | 220, 220, 220 | 13 |
| lightsteelblue | #b0c4de | 176, 196, 222 | 13.3 |
| gray | #808080 | 128, 128, 128 | 13.5 |
| lightslategray | #778899 | 119, 136, 153 | 14.6 |
| thistle | #d8bfd8 | 216, 191, 216 | 16.6 |
| slategray | #708090 | 112, 128, 144 | 16.7 |
Δ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: 2.35:1; with black text: 8.94:1. Black body text on darkgray meets WCAG AA; white text does not.