Description
Midnightblue (read as "midnight blue") has a hue of 240°, saturation 64% and lightness 27%, which places it in the blue family. Its strongest channel is blue (112).
Using midnightblue in CSS
.title { color: midnightblue; }
.box { background: midnightblue; border-color: #191970; }
.soft { background: rgb(25 25 112 / 20%); } /* midnightblue 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 | 5.6 |
| darkblue | #00008b | 0, 0, 139 | 6.2 |
| indigo | #4b0082 | 75, 0, 130 | 8.9 |
| darkslateblue | #483d8b | 72, 61, 139 | 11 |
| mediumblue | #0000cd | 0, 0, 205 | 12.5 |
| rebeccapurple | #663399 | 102, 51, 153 | 13.9 |
| blue | #0000ff | 0, 0, 255 | 18 |
| purple | #800080 | 128, 0, 128 | 18.4 |
Δ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: 14.85:1; with black text: 1.41:1. White body text on midnightblue meets WCAG AA.