Description
Darkblue (read as "dark blue") has a hue of 240°, saturation 100% and lightness 27%, 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 darkblue in CSS
.title { color: darkblue; }
.box { background: darkblue; border-color: #00008b; }
.soft { background: rgb(0 0 139 / 20%); } /* darkblue 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 |
|---|---|---|---|
| navy | #000080 | 0, 0, 128 | 1.6 |
| midnightblue | #191970 | 25, 25, 112 | 6.2 |
| indigo | #4b0082 | 75, 0, 130 | 7.7 |
| mediumblue | #0000cd | 0, 0, 205 | 8.8 |
| darkslateblue | #483d8b | 72, 61, 139 | 14.3 |
| rebeccapurple | #663399 | 102, 51, 153 | 14.9 |
| blue | #0000ff | 0, 0, 255 | 15 |
| purple | #800080 | 128, 0, 128 | 18.3 |
Δ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: 15.30:1; with black text: 1.37:1. White body text on darkblue meets WCAG AA.