Skip to content

Navy Blue Color

CSS navy #000080 — a very dark, pure blue.

HEX
#000080
RGB
rgb(0, 0, 128)
HSL
hsl(240, 100%, 25.1%)
HSV
hsv(240, 100%, 50.2%)
CMYKapproximation
cmyk(100%, 100%, 0%, 50%)
CSS name
navy

Open navy blue in the color picker to adjust it or copy other formats.

About navy blue

#000080 is the CSS named color navy, one of the original 16 HTML colors: blue at 128 with no red or green. It is named after the dark blue of naval uniforms.

In CSS, navy is marginally darker than darkblue (#00008B). Many modern “navy” brand colors are softer, adding a little red and green — midnightblue (#191970) or custom values such as #1F2A44 give that more muted look.

#000080 is the value of the CSS named color navy, defined in the CSS Color specification and identical in every browser.

Other colors called navy blue

  • Dark blue (CSS) #00008BVery slightly lighter.
  • Midnight blue (CSS) #191970A softer, less saturated navy.

Navy Blue shades and tints

Shades mix navy blue with black, tints mix it with white — useful for hover states, borders and backgrounds. Click a swatch to copy its HEX code.

Colors that go with navy blue

Color harmonies based on the hue of #000080: its complement on the opposite side of the color wheel, its analogous neighbours and its triadic partners.

Navy Blue contrast and readability

On a navy blue background, white text reads best (16.00:1). Here is how navy blue works as a text color:

#000080 on white

16.00:1

Normal text sample

Large text

  • AA normal text (4.5:1)Pass
  • AA large text (3:1)Pass
  • AAA normal text (7:1)Pass
  • AAA large text (4.5:1)Pass

#000080 on black

1.31:1

Normal text sample

Large text

  • AA normal text (4.5:1)Fail
  • AA large text (3:1)Fail
  • AAA normal text (7:1)Fail
  • AAA large text (4.5:1)Fail

Navy is a classic alternative to black for text, headers and footers: it has very high contrast with white and pairs well with white, gold, coral and light gray.

Using navy blue in CSS and HTML

CSS custom property
:root {
  --color-navy-blue: #000080;
}

.highlight {
  background-color: var(--color-navy-blue);
}
Background and text color
.banner {
  background-color: navy;
  color: #ffffff;
}

.label {
  color: #000080;
  border: 2px solid rgb(0, 0, 128);
}
Inline style in HTML
<p style="background-color: #000080; color: #FFFFFF;">
  Navy Blue background
</p>