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
| HEX | #000080 |
| RGB | rgb(0, 0, 128) |
| HSL | hsl(240, 100%, 25%) |
Harmonies
Complementary
Analogous
#004080#400080Split complementary
#804000#408000Tints & shades
Accessibility
| vs #ffffff | 16.01:1 |
| vs #000000 | 1.31:1 |
| Suggested text color | #ffffff · 16.01:1 · WCAG AAA |
Similar named colors
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.