
The standard navy blue hex code is #000080, which equals rgb(0, 0, 128). It is also one of the official HTML and CSS color names, so you can simply write color: navy; in your stylesheet. That said, many designers use slightly softer or deeper navies in practice. Below you’ll find the exact color codes, the navy shades used most often in modern design, colors that go with navy blue, and accessible text combinations with verified contrast ratios.
Navy Blue Color Codes at a Glance
| HEX | #000080 |
|---|---|
| RGB | rgb(0, 0, 128) |
| HSL | hsl(240, 100%, 25%) |
| CMYK (approx.) | 100, 100, 0, 50 |
| CSS name | navy |
The HTML navy is pure blue at half brightness: the red and green channels are zero, and blue is set to 128 out of 255. In HSL terms, it is hue 240° (pure blue), 100% saturation and 25% lightness. That makes it a very saturated, dark blue.
About CMYK: the CMYK value above is a simple mathematical conversion. Actual printed results depend on the printer, paper and color profile, so ask your print provider for a proof when color accuracy matters. Bright RGB blues are not always reproducible in print.
Navy Blue Shades Designers Actually Use
Pure #000080 can feel a little intense on modern screens. These five navy shades cover most real-world needs. The contrast column shows white text on each shade, calculated with the WCAG 2 formula.
| Shade | HEX | RGB | White text contrast | Best for |
|---|---|---|---|---|
| HTML navy | #000080 | 0, 0, 128 | 16.00:1 | Classic, bold accents |
| Royal navy | #1E3A8A | 30, 58, 138 | 10.35:1 | Buttons, corporate brands |
| Midnight navy | #172554 | 23, 37, 84 | 14.69:1 | Headers, footers |
| Deep navy | #0B1F3A | 11, 31, 58 | 16.51:1 | Dark mode backgrounds |
| Slate navy | #1F2A44 | 31, 42, 68 | 14.25:1 | Text, muted luxury designs |
All five comfortably exceed the WCAG AA requirement of 4.5:1 for normal text, which is one reason navy is such a popular choice for headers and buttons.
Navy vs. dark blue vs. midnight blue
These names are used loosely. In CSS, navy is #000080, darkblue is #00008B and midnightblue is #191970. Navy and dark blue are nearly identical; midnight blue has a touch of red and green, which makes it slightly softer. Outside of CSS, “navy” usually just means any very dark, desaturated blue.
What Colors Go With Navy Blue?
Navy behaves almost like a neutral. It is dark enough to replace black, yet it still carries the calm, trustworthy feel of blue. Here are pairings that work, grouped by style.
Classic combinations
Navy and white is the definitive nautical and corporate pairing — crisp, clean and highly readable.
#000080 · #FFFFFF · #F8FAFC · #CBD5E1
Navy and gold feels premium and formal. Gold #C9A227 on navy #000080 measures 6.61:1, so it can be used for headings and logos, not just thin decorative lines.
#000080 · #C9A227 · #F5EFE6 · #0B1F3A
Navy and red is bold and traditional — think flags, sports teams and classic Americana. Use red sparingly as an accent.
#1E3A8A · #B91C1C · #FFFFFF · #E5E7EB
Modern combinations
Navy and coral creates warm energy against a cool base. Coral #F87171 on navy measures 5.78:1.
#000080 · #F87171 · #FDE2E4 · #F8FAFC
Navy and mint feels fresh and contemporary, popular with fintech and health brands. Mint #A7F3D0 on midnight navy #172554 measures 11.45:1.
#172554 · #A7F3D0 · #ECFDF5 · #FFFFFF
Navy and blush balances strength with softness, often seen in wedding and lifestyle design. Blush #FBCFE8 on slate navy #1F2A44 measures 10.31:1.
#1F2A44 · #FBCFE8 · #FFF1F2 · #C9A227
Neutral combinations
Navy with cream, beige or warm gray creates a relaxed, timeless look. Royal navy #1E3A8A on cream #F5EFE6 measures 9.06:1, making it a strong option for text on warm backgrounds.
#1E3A8A · #F5EFE6 · #D8C8B0 · #9CA3AF
Looking for more neutral pairings? See what colors go with gray, which includes navy-and-gray palettes.
Navy Blue in Web Design
Navy is a natural fit for websites that need to feel reliable: finance, law, healthcare, education and B2B software. It typically appears in these roles:
- Headers and footers: a deep navy such as
#0B1F3Aor#172554frames the page and makes white logos pop. - Primary buttons:
#1E3A8Aor a slightly brighter#1E40AF(white text contrast 8.72:1). - Text: a muted navy like
#1F2A44can replace black for headings and body text, giving a softer, branded feel. - Dark mode: navy backgrounds are often easier on the eyes than pure black. On
#0B1F3A, light gray#CBD5E1reaches 11.12:1 and mid gray#9CA3AFreaches 6.50:1.
An example navy UI palette
| Role | Color |
|---|---|
| Header / footer | #0B1F3A |
| Primary button | #1E40AF |
| Accent / highlight | #FBBF24 (on #1E3A8A: 6.20:1) |
| Page background | #F8FAFC |
| Body text | #1F2A44 |
Before you publish, test your own combinations in the Color Contrast Checker. Contrast ratios in this article were calculated with the WCAG 2 formula and rounded down.
Copy-Ready CSS Snippets
Use CSS custom properties so you can adjust your navy in one place:
:root {
--navy: #000080;
--navy-royal: #1E3A8A;
--navy-midnight: #172554;
--navy-deep: #0B1F3A;
--navy-slate: #1F2A44;
}
.site-header {
background: var(--navy-deep);
color: #FFFFFF;
}
.button-primary {
background: var(--navy-royal);
color: #FFFFFF;
}
.button-primary:hover {
background: var(--navy-midnight);
}
/* Subtle navy gradient */
.hero {
background: linear-gradient(135deg, #172554, #1E40AF);
}
Working with blue-greens too? See our teal hex code guide. Want to create your own gradient? Try the Gradient Generator. To learn more about writing colors in CSS, read How to Use HEX Color Codes in CSS.
Navy Blue Beyond the Screen
Fashion
Navy is often treated as a softer alternative to black. A navy suit or blazer pairs well with white, light blue, gray, tan and burgundy. Navy with brown leather shoes and belts is a long-standing classic in menswear.
Interiors
Navy walls can make a room feel cozy and sophisticated, especially with white trim, brass or gold fixtures and natural wood. In smaller rooms, use navy on an accent wall or in furniture and textiles to avoid making the space feel dark.
Find and Convert Navy Shades
- Use the Color Picker to adjust navy’s lightness and copy HEX, RGB or HSL values.
- Convert any navy code between formats with the Color Converter.
- See all CSS named blues, including
navyandmidnightblue, in the HTML Color Codes reference. - Build a full navy palette with the Palette Generator.
The History of Navy Blue
Navy blue gets its name from the dark blue uniforms worn by officers of the British Royal Navy, adopted in 1748. The color was chosen because it was practical, dignified and resistant to fading. Navies around the world later adopted similar shades, and the name “navy blue” became common in English in the nineteenth century.
From military uniforms, navy spread to school uniforms, business suits, police uniforms and sportswear. Its association with discipline, authority and reliability has remained strong ever since.
The Psychology of Navy Blue
- Trust and reliability: navy is one of the most trusted colors in branding.
- Authority and professionalism: it suggests competence and seriousness without the harshness of black.
- Calm and stability: dark blue feels steady and composed.
- Intelligence and confidence: navy is common in universities, consulting and technology.
- Timelessness: it rarely feels trendy or dated.
Navy Blue vs Black
Navy is often used as a softer alternative to black. In design, navy text or backgrounds feel less harsh and more approachable while still offering strong contrast. In fashion, navy flatters many skin tones and looks slightly more relaxed than black, yet equally elegant. For dark website themes, a navy base such as #0F172A often feels richer and more modern than pure black.
A practical tip: navy and black can be worn or used together, but the combination works best when the difference is clear, for example a navy jacket with black trousers in good lighting. When the shades are very close, they may look like a mismatch.
Navy Blue in Branding
Navy is a favorite for banks, insurance companies, law firms, consulting agencies, airlines, universities, healthcare providers and technology companies. It communicates stability and trust, which are essential in industries where customers hand over money, data or important decisions.
Because so many brands use navy, distinctiveness comes from the accent color. Navy with coral feels modern and friendly, navy with gold feels premium, navy with bright cyan feels techy, and navy with mustard feels confident and creative.
Navy Blue Color Palettes
Classic Nautical: #1B2A49 #FFFFFF #C8102E #E5E7EB — navy, white and red for maritime and patriotic themes.
Modern Corporate: #0F1F3D #F8FAFC #3B82F6 #94A3B8 — clean and professional for business websites.
Navy and Gold: #14213D #FCA311 #E5E5E5 #FFFFFF — elegant and confident.
Navy and Blush: #1F2A44 #F4C2C2 #FAF7F5 #B76E79 — soft and romantic for weddings and lifestyle.
Navy and Sage: #1E2A44 #9CAF88 #F4F1EA #5C6B4F — calm and natural.
Navy and Coral: #1E3A5F #FF6F59 #FFF5F2 #F7C59F — energetic and friendly.
Navy Blue and Accessibility
Navy blue is excellent for accessibility. White text on classic navy #000080 has a contrast ratio of about 16:1, and on modern navies such as #1E3A8A about 10:1. Navy text on white is equally strong, making it a great alternative to black for headings and body text.
In dark mode, navy works well as a background but not as a text color. Use light grays or light blues for text on navy surfaces, and lighten your accent colors so they remain readable.
Navy Blue for Weddings and Events
Navy is a timeless wedding color that works in every season. It pairs beautifully with blush and gold for romance, with white and silver for winter elegance, with burgundy for autumn, and with yellow or coral for summer. Navy groomsmen suits and bridesmaid dresses flatter many skin tones and photograph well.
Common Mistakes With Navy
- Too much navy. Large areas of dark navy can feel heavy. Balance with light backgrounds and white space.
- Navy text on dark backgrounds. It disappears. Use light text instead.
- Bland pairings. Navy with gray alone can feel corporate and dull. Add a warm accent.
- Mismatched navies. A purple-leaning navy next to a green-leaning navy looks inconsistent. Choose one and build a scale from it.
Navy Blue Through the Seasons
Spring: navy with pastel pink, mint and white feels fresh.
Summer: navy with white, red and sand creates a classic nautical look.
Autumn: navy with mustard, rust and camel feels warm and grounded.
Winter: navy with silver, cream and burgundy feels elegant and festive.
Example: A Navy Blue Website Layout
For a financial consulting firm, a navy-based layout could look like this: a white page background, a deep navy #0F1F3D header and footer with white text, navy #1E3A8A headings, dark slate #1F2937 body text, light blue-gray #F1F5F9 section backgrounds and a gold #D4A017 accent for the main “Book a Consultation” button. The navy builds trust, the light backgrounds keep the page open and the gold accent draws attention to the key action.
Navy Blue in Interiors
Navy walls create a cozy, sophisticated atmosphere in bedrooms, dining rooms, offices and libraries. They look especially good with brass fixtures, warm wood, white trim and cream textiles. In smaller rooms, consider navy on a single accent wall or on cabinetry to avoid making the space feel too dark. Navy kitchen islands and front doors are also popular choices that add depth without overwhelming a home.
Navy Blue Quick Reference
- Classic navy: #000080
- Modern UI navy: #1E3A8A
- Dark mode base navy: #0F172A
- Best partners: white, gold, coral, blush, mustard, sage and gray.
- Mood: trustworthy, professional, calm and timeless.
Navy Blue in Print
Navy prints well in CMYK, but very dark navies can look almost black on uncoated paper because the ink spreads and absorbs light. To keep navy looking blue in print, choose a slightly brighter navy for printed materials or use a Pantone spot color for logos. Request a proof, especially for business cards and stationery, where the difference between navy and black is noticeable.
Navy remains one of the most reliable, elegant and versatile colors you can use, whether on screen, in print or in physical spaces.
Navy Blue in Fashion Tips
Navy is a true wardrobe essential. A navy blazer, sweater, coat or pair of trousers pairs with almost everything. For a classic look, combine navy with white and tan. For a modern look, try navy with olive or burgundy. For evening, navy with silver or gold accessories looks refined. Because navy is softer than black, it is often recommended for job interviews and professional photos.
Whatever your project, start with a navy shade that fits your mood, pair it with one confident accent, and give it plenty of light space to shine.
The results will feel timeless.
Frequently Asked Questions
What is the hex code for navy blue?
The standard navy blue hex code is #000080, equal to rgb(0, 0, 128). It is also the CSS named color navy.
Is navy the same as dark blue?
Very close. In CSS, navy is #000080 and darkblue is #00008B, a slightly brighter blue. In everyday language, “navy” usually refers to any deep, dark blue.
What is the difference between navy and midnight blue?
Midnight blue (#191970) contains small amounts of red and green, which make it softer and slightly purple-leaning compared with the pure blue of navy.
What color text should I use on navy?
White and very light colors work best. White on #000080 has a contrast ratio of 16.00:1, well above the WCAG AA minimum. Gold, coral and mint also pass for normal text on the navy shades listed above.
What is navy blue in CMYK?
A direct mathematical conversion of #000080 gives approximately C 100, M 100, Y 0, K 50 (try the RGB to CMYK Converter). Printed colors vary by printer and profile, so request a proof for important print jobs.
Final Thoughts
Navy blue is one of the most versatile colors in design: dependable enough for corporate brands, stylish enough for fashion and interiors, and dark enough to replace black. Start with #000080 if you need the classic value, or choose a softer navy like #1E3A8A or #172554 for modern interfaces. Pair it with white, gold, coral or mint, and always confirm text contrast.
Ready to build your navy palette? Open the Color Picker, enter #000080 and start exploring.
What is azul navy in hexadecimal?
“Azul navy” is Spanish for navy blue. Its hexadecimal code is #000080, which equals RGB(0, 0, 128). Some designers also use darker navy variants such as #001F3F or #1B2A49.
Related Color Guides
Looking for a lighter blue? See our light blue hex codes. For metallic accents that pair well with navy, try gold hex codes or silver hex codes.