navy navy #000080

navy is #000080 in hexadecimal, rgb(0, 0, 128) in decimal and hsl(240, 100, 25) in HSL. This page lists its harmonies, lightness steps and contrast against black and white — all copyable.

HEX · RGB · HSL

#000080
HEX#000080
RGBrgb(0, 0, 128)
HSLhsl(240, 100%, 25%)

Harmonies

Complementary

Analogous

#004080#400080

Triadic

Split complementary

#804000#408000

Tints & shades

#00006b#000075#000080#00008a#000094

Accessibility

vs #ffffff16.01:1
vs #0000001.31:1
Suggested text color#ffffff · 16.01:1 · WCAG AAA

Similar named colors

darkblue#00008bmidnightblue#191970indigo#4b0082mediumblue#0000cddarkslateblue#483d8bdarkslategray#2f4f4f

FAQ

What is the HEX code for navy?

navy is #000080 in hex, rgb(0, 0, 128) in decimal and hsl(240, 100%, 25%) in HSL. In CSS you can write either color: navy; or color: #000080; — they are equivalent.

What colors go with navy?

The complementary #808000 gives the strongest contrast, the analogous pair #004080 / #400080 is the safest, and the triad #800000 / #008000 adds more tension. All three are derived from the 240° hue of #000080.

Does #000080 read better on white or black?

Its contrast is 16.01:1 against white and 1.31:1 against black. Use #ffffff text on it — that gives 16.01:1, which meets WCAG AAA.

Is a named color different from a hex color?

No. CSS named colors are just syntactic sugar for standard six-digit hex values; browsers resolve them to identical results in every modern engine.

← All named colors