Navy color #000080
rgb(0, 0, 128) · oklch(27.1% 0.188 264.1)
Navy (#000080) is a very dark, vivid, cool blue. It mixes 0% red, 0% green and 50% blue, with a perceived lightness of 27.1% in OKLCH. White text reads best on it (16.00:1 vs 1.31:1). The closest other CSS color is Dark Blue (#00008B). For people with tritanopia it shifts the most, toward #003248.
Navy color codes
| HEX | |
|---|---|
| RGB | |
| HSL | |
| HSV / HSB | |
| OKLCH | |
| CMYK | |
| CSS keyword |
Click a value to copy it. Convert any other color with the color converter.
Shades, tints and tones of navy
Shades mix navy with black, tints mix it with white, and tones mix it with gray. Mixing happens in OKLab, so the steps look evenly spaced.
Tints (lighter)
Shades (darker)
Tones (muted)
Navy as a UI color scale (50–950)
An 11-step scale for design systems, with navy placed at step 950. Copy it as a Tailwind v4 theme below.
Colors that go with navy
Harmonies are computed on the OKLCH hue wheel, keeping navy’s lightness and saturation where the sRGB gamut allows. Open any row in the palette generator to adjust it.
Complementary
EditThe base color and the hue directly opposite it. Maximum contrast; use one as the accent.
Split complementary
EditThe base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.
Tetradic (rectangle)
EditTwo complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.
Is navy accessible? Contrast with white and black
16.00:1
AA pass AA large pass AAA pass
1.31:1
AA fail AA large fail AAA fail
- As a background, navy works best with white text.
- For body text on black, use the lighter variant .
How navy looks with color blindness
Simulated with the Machado et al. (2009) model. Around 1 in 12 men and 1 in 200 women have some form of color vision deficiency.
#002883 Red-blind. Reds look dark and brownish; red and green are easily confused.
#001a7e Green-blind, the most common strong form. Red, green, orange and brown look similar.
#003248 Blue-blind and rare. Blue and green are confused, as are yellow and pink.
#212121 Total color blindness, very rare. Only lightness differences are visible.
Colors similar to navy
The closest CSS named colors by perceptual distance (ΔE OK; under 2 is hard to tell apart).
Use navy in CSS and Tailwind
CSS custom properties
:root {
--navy: #000080;
--navy-rgb: 0 0 128;
}
.text-navy { color: var(--navy); }
.bg-navy { background-color: var(--navy); }
Tailwind v4 theme
@theme {
--color-navy-50: #f6f7f8;
--color-navy-100: #eaedf1;
--color-navy-200: #d3dbeb;
--color-navy-300: #abc1ed;
--color-navy-400: #769ff6;
--color-navy-500: #447cff;
--color-navy-600: #1b57ff;
--color-navy-700: #063bdf;
--color-navy-800: #0d35a5;
--color-navy-900: #102d78;
--color-navy-950: #000080;
}
Make a gradient from navy: open the gradient generator.
Painting in Procreate or designing in Photoshop? See our palette packs: every color with HEX codes is free to browse, and the swatch files are a quick download.