Description
Darkslateblue (read as "dark slate blue") has a hue of 248°, saturation 39% and lightness 39%, which places it in the blue 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).
Using darkslateblue in CSS
.title { color: darkslateblue; }
.box { background: darkslateblue; border-color: #483d8b; }
.soft { background: rgb(72 61 139 / 20%); } /* darkslateblue 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 |
|---|---|---|---|
| rebeccapurple | #663399 | 102, 51, 153 | 7.3 |
| midnightblue | #191970 | 25, 25, 112 | 11 |
| indigo | #4b0082 | 75, 0, 130 | 12.2 |
| slateblue | #6a5acd | 106, 90, 205 | 13.4 |
| mediumblue | #0000cd | 0, 0, 205 | 13.9 |
| darkblue | #00008b | 0, 0, 139 | 14.3 |
| navy | #000080 | 0, 0, 128 | 14.7 |
| purple | #800080 | 128, 0, 128 | 15.8 |
Δ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: 9.07:1; with black text: 2.32:1. White body text on darkslateblue meets WCAG AA.