Description
Darkslategray (read as "dark slategray") has a hue of 180°, saturation 25% and lightness 25%, which places it in the cyan & teal 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 darkslategrey; both keywords produce #2F4F4F.
Using darkslategray in CSS
.title { color: darkslategray; }
.box { background: darkslategray; border-color: #2f4f4f; }
.soft { background: rgb(47 79 79 / 20%); } /* darkslategray 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 |
|---|---|---|---|
| dimgray | #696969 | 105, 105, 105 | 17 |
| teal | #008080 | 0, 128, 128 | 18 |
| darkcyan | #008b8b | 0, 139, 139 | 21.8 |
| slategray | #708090 | 112, 128, 144 | 22.7 |
| darkolivegreen | #556b2f | 85, 107, 47 | 22.7 |
| purple | #800080 | 128, 0, 128 | 23.5 |
| darkmagenta | #8b008b | 139, 0, 139 | 23.5 |
| gray | #808080 | 128, 128, 128 | 24 |
Δ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: 8.93:1; with black text: 2.35:1. White body text on darkslategray meets WCAG AA.