Description
Navy has a hue of 240°, saturation 100% and lightness 25%, which places it in the blue family. Its strongest channel is blue (128).
Using navy in CSS
.title { color: navy; }
.box { background: navy; border-color: #000080; }
.soft { background: rgb(0 0 128 / 20%); } /* navy 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 |
|---|---|---|---|
| darkblue | #00008b | 0, 0, 139 | 1.6 |
| midnightblue | #191970 | 25, 25, 112 | 5.6 |
| indigo | #4b0082 | 75, 0, 130 | 7.9 |
| mediumblue | #0000cd | 0, 0, 205 | 10.3 |
| darkslateblue | #483d8b | 72, 61, 139 | 14.7 |
| rebeccapurple | #663399 | 102, 51, 153 | 15.6 |
| blue | #0000ff | 0, 0, 255 | 16.5 |
| purple | #800080 | 128, 0, 128 | 18.6 |
Δ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: 16.01:1; with black text: 1.31:1. White body text on navy meets WCAG AA.