About navy blue
In CSS, navy blue is called navy (#000080): blue at about half strength with no red or green. It is one of the 16 HTML 4 color names.
Related dark blues are darkblue (#00008B), midnightblue (#191970) and mediumblue (#0000CD).
Tints of navy blue
Navy blue is darker than a usual 950 step, so it ends the scale and every other step is lighter and brighter. The steps follow a lightness curve modeled on Tailwind CSS's default palette; build your own in the Tailwind color generator. For navy blue mixed with white, black or gray in even steps, use the tint and shade generator.
Colors that go with navy blue
Partner hues are picked on the OKLCH color wheel at a mid lightness, because navy blue itself is very dark.
Complementary: the opposite hue
Open in the palette generator · Compare the screen and painter's complements of navy blue
Analogous: neighboring hues 30° either side
Open in the palette generator · See analogous and monochromatic colors of navy blue on three wheels
Triadic: three hues 120° apart
Split complementary: the two hues beside the complement
Text on navy blue
| Text | Ratio | AA normal | AA large | AAA normal |
|---|---|---|---|---|
| White | 16.01:1 | Pass | Pass | Pass |
| Black | 1.31:1 | Fail | Fail | Fail |
The ratio is the same either way round, so navy blue text on a white background is also 16.01:1. Check other pairs in the color contrast checker.
Similar named colors
The CSS named colors closest to navy blue, by deltaE OK distance.
See all 148 on the color names page.
Closest Tailwind CSS colors
violet-950 v4: violet-950, #2F0D68, deltaE OK 0.090
violet-950 v3: violet-950, #2E1065, deltaE OK 0.092
No default Tailwind color is a close match: the nearest are violet-950 in v4 and violet-950 in v3. Use an arbitrary value instead: bg-[#000080]. A deltaE OK of around 0.02 is roughly the smallest difference most people notice side by side. Browse every shade on the Tailwind CSS colors page.
Navy blue with color vision deficiency
An approximation of how navy blue may look with protanopia, deuteranopia and tritanopia (simulated with Machado, Oliveira and Fernandes, 2009), and with achromatopsia, shown as a gray of the same luminance.
Test a whole palette or image in the color blindness simulator.
Using navy blue in code
.example {
color: navy; /* named color */
background-color: #000080; /* hex */
border-color: rgb(0, 0, 128);
}
