Xerobit

Navy Hex Code and Color Values

Navy (CSS name navy) has the hex code #000080. In RGB it is 0, 0, 128, and in HSL it is 240 degrees, 100% saturation and 25% lightness.

Navy: #000080

  • Hex
    #000080
  • RGB
    rgb(0, 0, 128)
  • HSL
    hsl(240, 100%, 25%)
  • HSV
    240, 100%, 50%
  • CMYK
    100%, 100%, 0%, 50%
  • CSS name
    navy

About Navy

A very dark, authoritative blue traditionally associated with maritime uniforms. It is a staple in corporate branding, government websites, and professional typography. Navy conveys trust, discipline, and stability, making it one of the most reliable dark neutrals in design. The name refers to the dark blue uniforms worn by officers in the British Royal Navy since the 18th century.

Shades and tints of Navy

Tints mix Navy with white and shades mix it with black. Each step changes the color by 10 percentage points.

StepTint (towards white)Shade (towards black)
10% #1A1A8D #000073
20% #333399 #000066
30% #4D4DA6 #00005A
40% #6666B3 #00004D
50% #8080C0 #000040

Color harmony for Navy

These colors keep the same saturation and lightness as Navy and rotate the hue around the color wheel.

SchemeColors
Complementary #808000
Analogous #004080 #400080
Triadic #800000 #008000
Split complementary #804000 #408000

Contrast and accessibility

Contrast between #000080 and white is 16.01:1 (passes AAA). Against black it is 1.31:1 (fails). For text on a Navy background, white text is the more readable choice.

Use Navy in CSS

.element {
  color: navy;
  background-color: #000080;
  border-color: rgb(0 0 128);
  outline-color: hsl(240 100% 25%);
}

All four lines produce exactly the same color. The keyword navy is one of the CSS named colors, so it works in every browser without a color function.

Similar named colors

FAQ

What is the hex code for Navy?

The hex code for Navy is #000080. As a CSS color keyword you can also write navy.

What is Navy in RGB?

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

What color is closest to Navy?

Of the CSS named colors, darkblue (#00008B) is the closest match to Navy, followed by midnightblue and indigo.

More colors