Navy
Hex #000080, rgb(0 0 128). A blue CSS named color.
Open in palette generatorNavy color codes
Click any value to copy it.
- HEX
- RGB
- HSL
- HSV
- HWB
- CMYK
- OKLCH
- OKLab
- Lab
- LCH
- CSS keyword
About Navy
Navy is a very dark saturated blue with the hex code #000080. In RGB it is made of 0 red, 0 green and 128 blue; in HSL its hue is 240°, with 100% saturation and 25% lightness. Its perceptual lightness (OKLCH L) is 27.1%.
It is a CSS named color, so you can write "navy" anywhere CSS accepts a color. Against white it has a contrast ratio of 16.01:1 and against black 1.31:1, so white text reads better on it and passes WCAG AA for normal text.
Tints, shades and tones
Navy mixed step by step with white, black and middle gray (#808080).
Tints (with white)
Shades (with black)
Tones (with gray)
Navy 50-950 scale
A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.
Colors that go with Navy
Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.
Complementary
Analogous
Split complementary
Contrast and readability
WCAG 2 contrast of Navy with white and black. The readable text color on Navy is white.
On white16.01:1
- AA pass
- AA Large pass
- AAA pass
- UI 3:1 pass
APCA Lc 101
On black1.31:1
- AA fail
- AA Large fail
- AAA fail
- UI 3:1 fail
APCA Lc 0
Test any pair in the contrast checker.
Color blindness preview
How Navy appears with each type of color vision deficiency (simulated with the Machado model).
- Protanopia#002883
- Deuteranopia#001A7E
- Tritanopia#003248
- Protanomaly#002182
- Deuteranomaly#00177F
- Tritanomaly#001E6B
- Achromatopsia#212121
Colors similar to Navy
The closest named colors by perceptual difference (OKLab).
Use Navy in CSS and Tailwind
.navy {
color: navy; /* #000080 */
background-color: rgb(0 0 128);
border-color: oklch(27.1% 0.188 264.1);
}/* Tailwind CSS v4: bg-navy-500, text-navy-700... */
@theme {
--color-navy-50: #F8FAFF;
--color-navy-100: #E6EFFF;
--color-navy-200: #CDDEFF;
--color-navy-300: #A8C5FF;
--color-navy-400: #75A1FF;
--color-navy-500: #5388FF;
--color-navy-600: #356FFF;
--color-navy-700: #0E4BFF;
--color-navy-800: #0031EA;
--color-navy-900: #0028CA;
--color-navy-950: #000080;
}
<!-- or the exact color, no config -->
<div class="bg-[#000080] text-[#FFFFFF]">…</div>