Navy — #000080
The hex code for navy is #000080 — rgb(0, 0, 128), hsl(240, 100%, 25%). Use it in CSS as color: #000080;.
Navy is a very dark blue — the color of deep ocean water and formal uniforms. It is the most formal blue and a classic alternative to black.
Navy color codes — click to copy
#000080rgb(0, 0, 128)hsl(240, 100%, 25%)hsv(240, 100%, 50%)cmyk(100%, 100%, 0%, 50%)Shades, tints & tones of navy
Click any swatch to copy it.
Navy harmonies
Click a swatch to copy it.
Colors that go with navy
| Color | Hex | |
|---|---|---|
| White | #FFFFFF | |
| Gold | #FFD700 | |
| Coral | #FF7F50 | |
| Silver | #C0C0C0 |
Where navy is used
Use navy for corporate, legal, financial, and formal design. Navy with white and gold is a timeless premium combination; navy with coral or yellow feels modern.
What navy is often associated with: Authority, trust, formality, and depth.
Contrast — can you read text on navy?
White text on navy scores 16.01:1
Normal text: AA Pass AAA Pass
Large text (18pt+, or 14pt bold+): AA Pass AAA Pass
Black text scores 1.31:1Normal text: AA Fail AAA Fail
Large text (18pt+, or 14pt bold+): AA Fail AAA Fail
Check any pair in the contrast checker →How navy looks with color blindness
Simulated with the Machado matrices. Click a swatch to copy the simulated color.
Protanopia
Deuteranopia
Tritanopia
This is a simulation for design checks, not a vision test. See the color blind simulator for any palette.
Frequently asked questions
What is the hex code for navy?
The hex code for navy is #000080.
What is the RGB of navy?
The RGB of navy is rgb(0, 0, 128).
What colors go with navy?
Colors that go well with navy include white (#FFFFFF), gold (#FFD700), coral (#FF7F50). See the pairings table on this page for the full list.
Is navy a good color for a website?
Navy works well as an accent or background — white text on it scores 16.01:1, which passes WCAG AA. Check any pair in the contrast checker before you ship it.
What does the color navy mean?
Authority, trust, formality, and depth.
Related tools
Color Picker · Color Names · Palette Generator · Complementary Colors · Contrast Checker