Skip to content

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

Edit

The base color and the hue directly opposite it. Maximum contrast; use one as the accent.

Analogous

Edit

Neighbors 30° either side on the hue wheel. Calm and cohesive, common in nature.

Triadic

Edit

Three hues spaced 120° apart. Vibrant but balanced; let one dominate.

Split complementary

Edit

The base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.

Tetradic (rectangle)

Edit

Two complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.

Monochromatic

Edit

One hue at different lightness levels. Safe, elegant, and easy to read.

Is navy accessible? Contrast with white and black

Navy text on white

16.00:1

AA pass AA large pass AAA pass

Navy text on black

1.31:1

AA fail AA large fail AAA fail

Check navy against any other color

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.

Protanopia: #002883
Red-blind. Reds look dark and brownish; red and green are easily confused.
Deuteranopia: #001a7e
Green-blind, the most common strong form. Red, green, orange and brown look similar.
Tritanopia: #003248
Blue-blind and rare. Blue and green are confused, as are yellow and pink.
Achromatopsia: #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).

ΔE 2.0 Dark Blue
#00008b
ΔE 5.4 Midnight Blue
#191970
ΔE 13.7 Medium Blue
#0000cd
ΔE 13.7 Indigo
#4b0082

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.

More blue colors