Description
Slategray has a hue of 210°, saturation 13% and lightness 50%, which places it in the blue family. Its strongest channel is blue (144). It is identical to slategrey; both keywords produce #708090.
Using slategray in CSS
.title { color: slategray; }
.box { background: slategray; border-color: #708090; }
.soft { background: rgb(112 128 144 / 20%); } /* slategray 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 |
|---|---|---|---|
| lightslategray | #778899 | 119, 136, 153 | 3 |
| gray | #808080 | 128, 128, 128 | 8.9 |
| steelblue | #4682b4 | 70, 130, 180 | 10.6 |
| dimgray | #696969 | 105, 105, 105 | 12.2 |
| mediumpurple | #9370db | 147, 112, 219 | 12.3 |
| mediumslateblue | #7b68ee | 123, 104, 238 | 12.5 |
| royalblue | #4169e1 | 65, 105, 225 | 13.6 |
| slateblue | #6a5acd | 106, 90, 205 | 13.9 |
Δ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: 4.05:1; with black text: 5.18:1. Black body text on slategray meets WCAG AA; white text does not.