Navy Color

HEX #000080 · rgb(0, 0, 128) · hsl(240, 100%, 25%)

Navy color codes

Navy is one of the named colors every browser understands. In CSS you can write it as navy or #000080.

FormatValue
HEX#000080
RGBrgb(0, 0, 128)
HSLhsl(240, 100%, 25%)
CMYK100%, 100%, 0%, 50%
CSS namenavy
.example {
  color: navy;
  background-color: #000080;
  border-color: rgb(0, 0, 128);
}

Colors that go with navy

These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.

#808000Complementary
Olive
#004080Analogous
#400080Analogous
#800000Triadic
Maroon
#008000Triadic
Green

Tints and shades of navy

Tints mix the color with white; shades mix it with black.

#E6E6F290% white
#BFBFDF75% white
#9999CC60% white
#7373B945% white
#4D4DA630% white
#26269315% white
#000080Base
Navy
#00006D15% black
#00005A30% black
#00004645% black
#00003360% black
#00002075% black
#00000D90% black

Contrast and readability

Black text
1.31:1
fails
White text
16.01:1
passes AA and AAA

Use white text on navy. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.

Frequently asked questions

What is the hex code for navy?

The hex code for navy is #000080.

What is the RGB value of navy?

Navy is rgb(0, 0, 128): 0 red, 0 green and 128 blue on a 0 to 255 scale.

What color goes with navy?

Its complementary color is #808000, which is closest to the named color olive. Analogous and triadic matches are listed on this page.

Should text on navy be black or white?

Use white text. The contrast ratio is 1.31:1 with black and 16.01:1 with white. WCAG AA asks for at least 4.5:1 for normal text.

Similar named colors

Pick any other color with the color picker, or browse all named colors.