Navy Color Code (#000080)

Navy is #000080 in hex and rgb(0, 0, 128) — a dark blue. Below: every color format, tints and shades, harmonies and how readable it is as text.

Updated

Navy
#000080
CSS namenavy
Hex#000080
RGBrgb(0, 0, 128)
HSLhsl(240 100% 25%)
HWBhwb(240 0% 50%)
CMYK100%, 100%, 0%, 50%

Tints and shades

Color harmonies

About Navy

Navy (navy) is a dark, vivid blue with the hex code #000080, or rgb(0, 0, 128). In HSL it sits at a hue of 240°, 100% saturation and 25% lightness. It is one of the 148 named colors every browser understands, so you can write color: navy; instead of the hex value.

Using Navy for text and backgrounds

PairingContrast ratioWCAG
Navy text on white16.01 : 1AAA
Navy text on black1.31 : 1fails

On a navy background, use white text (16.01 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.

CSS

.element {
  color: navy;               /* or #000080 */
  background-color: #000080;
  border: 1px solid rgb(0 0 128 / 50%);
}

Similar named colors

Dark Blue (#00008b), Midnight Blue (#191970), Indigo (#4b0082), Medium Blue (#0000cd), Dark Slate Blue (#483d8b), Dark Slate Gray (#2f4f4f).

Color Name FinderPaste a HEX code to get its closest human-readable name and clean token names for your CSS, SCSS, JavaScript or Tailwind config.
Open the tool

Frequently asked questions

What is the hex code for navy?
#000080 — that is rgb(0, 0, 128) and hsl(240, 100%, 25%). In CSS you can also just write navy.
Is navy text readable on white?
Its contrast ratio on white is 16.01 : 1, which passes WCAG AA for normal text.
What colors go well with navy?
Its complementary color is #808000; analogous colors #004080 and #400080 sit next to it on the color wheel.