Inspect Navy (#000080) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.
Navy
#000080
White text reads best on this background, at 16.01:1.
Navy is one of the 148 CSS named colors, and resolves to #000080 in every browser. In numbers that is rgb(0, 0, 128) and hsl(240, 100%, 25%). Perceptually it is a dark, vivid color: OKLCH puts its lightness at 27% and its chroma at 0.188. It sits in the blues at 264 degrees of OKLCH hue, and reads as a cool color.
White text clears WCAG AA on a Navy background at 16.01:1, and AAA as well. At this chroma it is loud enough to be an accent or a call to action, but it will fight anything else vivid placed next to it.
The closest CSS named colors to Navy, measured with CIEDE2000, are DarkBlue (#00008B), MidnightBlue (#191970), Indigo (#4B0082). If Navy is not quite right, those are the nearest keywords to try before reaching for a custom value.
HEX
#000080
RGB
rgb(0, 0, 128)
HSL
hsl(240, 100%, 25%)
HWB
hwb(240 0% 50%)
CMYK
cmyk(100%, 100%, 0%, 50%)
LAB
lab(11.34 40.96 -67.2)
LCH
lch(11.34 78.7 301.36)
OKLCH
oklch(27.11% 0.1879 264.05)
WCAG asks for 4.5:1 between body text and its background. On #000080 white text measures 16.01:1 and black text 1.31:1, so white clears it and black does not.
White text on Navy
WCAG 2.2
16.01:1
APCA
Lc 103
Passes AA body text
Passes AAA body text
Passes AA large text
Black text on Navy
WCAG 2.2
1.31:1
APCA
Lc 0
Fails AA body text
Fails AAA body text
Fails AA large text
Check Navy against any other color in the contrast checker.
Navy sits at 27% OKLCH lightness. Holding its hue and chroma and moving only that value carries it up to #F5F9FF and down to #000220, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.
#123CAF
20% lighter
#3869DF
40% lighter
#6A99FF
60% lighter
#B0CAFF
80% lighter
#F5F9FF
100% lighter
#000F61
20% darker
#000A50
40% darker
#00063F
60% darker
#00042F
80% darker
#000220
100% darker
Build a full accessible scale from #000080 in the shade generator.
Hues rotated around #000080 in OKLCH, then pulled back into the sRGB gamut. Each swatch is labelled with the nearest CSS named color so you have a keyword to start from.
Navy sits at 264 degrees. Rotating it a half turn lands on 84 degrees, the hue directly opposite. It is the strongest pairing you can make without changing lightness, and the one most likely to vibrate if you use both at full chroma.
The neighbors of Navy at 234 and 294 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.
264, 24 and 144 degrees divide the wheel into thirds. Balanced enough to carry a whole palette without one color dominating the other two.
Instead of the complement at 84 degrees, this pair flanks it at 54 and 114. You keep most of the contrast of a complementary pairing while losing the harshness.
Explore more combinations around Navy on the color wheel.
The biggest shift is under achromatopsia, where #000080 reads as #090909, 29.4 CIEDE2000 units away. If Navy is the only thing marking a state or a series, roughly one viewer in twelve will miss it.
Protanopia
#000D87
Deuteranopia
#00067C
Tritanopia
#001327
Achromatopsia
#090909
The nearest CSS keywords to #000080, ranked by perceptual distance rather than by how close their hex digits happen to look.