Navy blue hex code

#000080

The hex code for navy blue is #000080, which is RGB 0, 0, 128. It is the CSS color navy and one of the 16 original HTML colors: pure blue at half strength, with no red or green.

0

Click a value to copy it. Move the slider to try a lighter or darker version; the code samples further down follow it.

Runs in your browser. Nothing you type is uploaded.

Navy blue color codes

These are all the same navy blue, written for different tools. Web and app design use HEX, RGB and HSL, print uses CMYK, and CIE Lab and LCH describe the color the way the eye sees it. Click any code in the tool above to copy it.

FormatValue
HEX#000080
RGBrgb(0, 0, 128)
HSLhsl(240, 100%, 25%)
HSVhsv(240, 100%, 50%)
CMYK100, 100, 0, 50
CIE Lab13.0, 47.5, -64.7
LCH13.0, 80.3, 306.3
Decimal128
Binary00000000 00000000 10000000
CSS color namenavy
Navy blue swatch, hex #000080, with lighter and darker shades

To turn any other code into these values, paste it into the hex to RGB converter.

Which navy blue hex code should you use?

Different color sites give different codes for navy blue. These are the four you are most likely to run into, where each one comes from and how they differ.

#000080CSS and HTML color name navy, used by Wikipedia, Figma, Canva and HTMLColorCodesPure blue at half brightness.
#191970CSS color name midnightblueSlightly grayer and softer.
#00008BCSS color name darkblueA little brighter than navy.
#003B4FNavy blue in the US Navy design guideMuch greener, closer to a dark teal.

Color sites agree on #000080, so this is one of the few named colors with a clear answer. The confusion comes from CSS, which has three dark blues: navy, darkblue and midnightblue. Navy is the darkest of the pure blues, and midnight blue has a little red and green that make it look less saturated.

The US Navy's own design guide uses #003B4F for navy blue, a blue-green much closer to dark teal. It shows how far a brand color can drift from the name.

Measured as CIE76 color distance from #000080, #191970 is 22.1, #00008B is 5.2 and #003B4F is 74.5. A distance under about 2.3 is hard to see, so all of these are visibly different from the main code. Codes checked on November 10, 2026.

Shades of navy blue

Dark blues with established names. The ones marked CSS work as color names in any stylesheet.

Navy#000080CSS navy
Dark blue#00008BCSS darkblue
Midnight blue#191970CSS midnightblue
Prussian blue#003153Figma
Medium blue#0000CDCSS mediumblue
Dark slate blue#483D8BCSS darkslateblue
Royal blue#4169E1CSS royalblue
US Navy blue#003B4FUS Navy design guide

Light navy and dark navy

Each step mixes navy blue with 10 percent more white (tints) or black (shades), so the hue stays the same. Click a step to copy it.

0000801A1A8D3333994C4CA66666B38080C09999CCB2B2D9CCCCE6E6E6F2
#000080White
00008000007300006600005A00004D00004000003300002600001A00000D
#000080Black

Colors that go with navy blue

Navy is dark enough to act like a neutral, so it works with warm and cool colors alike. Warm, light colors make it look most striking.

Gold#FFD700Formal and classic, used for uniforms, crests and invitations.
Cream#FFFDD0Soft and warm, a gentler pair than navy and white.
Coral#FF7F50A bright warm accent, popular for summer designs.
Silver#C0C0C0Cool and elegant, common for winter events.
Light blue#ADD8E6The same hue at two depths, calm and tidy.

Matches from the color wheel

ComplementaryThe opposite side of the wheel
#000080, #808000
Split complementaryThe two colors beside the opposite
#000080, #804000, #408000
AnalogousNeighbors 30 degrees either side
#004080, #000080, #400080
TriadicThree colors 120 degrees apart
#000080, #800000, #008000

These come from rotating the hue of #000080 (240 degrees) around the color wheel while keeping its saturation and lightness. They fit together in theory, but check them in your design: a wheel match is a starting point, not a rule.

Navy blue color palettes

Three palettes built around navy blue, each with a light color for backgrounds and a dark one for text. Click a palette to copy all five codes.

NauticalWhite, blues and a red accent.
#FFFFFF, #ADD8E6, #4169E1, #000080, #C8102E
Navy and goldWarm metal on a deep blue base.
#FFFDD0, #D4AF37, #FFD700, #1C2E5A, #000080
Navy and coralA warm accent with navy for text.
#FFF5EE, #FFB59E, #FF7F50, #2E3B6E, #000080

What colors make navy blue?

On a screen

On #000080, red and green are zero and blue is at 128, which is 50 percent. That is pure blue at half brightness. Raise blue and it becomes medium blue and then #0000FF. Add equal amounts of red and green and it softens toward midnight blue #191970.

With paint

Mix blue with a small amount of black. A drop of orange, the opposite of blue, also darkens it while keeping it richer than black does. Start with ultramarine for a warmer navy or phthalo blue for a cooler one.

Is text readable on navy blue?

WCAG asks for a contrast ratio of at least 4.5 to 1 for normal text and 3 to 1 for large text, which means 24px, or 19px bold. White text on #000080 is the readable choice.

PairingContrastNormal textLarge text
White text on navy blue16.01:1PassesPasses
Black text on navy blue1.31:1FailsFails

How navy blue looks with color blindness

Normal vision#000080
Protanopia#002883No red cones
Deuteranopia#001A7ENo green cones
Tritanopia#003248No blue cones
Achromatopsia#212121No color vision

Navy stays dark blue with red-green color blindness and shifts toward a dark blue-green with tritanopia, #003248. These are approximate simulations using the Machado matrices for full color blindness. Color blindness affects about 1 in 12 men and 1 in 200 women, mostly the red-green types, so do not use navy blue as the only signal for something like an error or a selected state.

Navy blue in binary

A hex code is three bytes, one each for red, green and blue. Each pair of hex digits is one byte, and each byte is 8 bits. This is how #000080 is stored:

ChannelHexDecimalBinaryBits that are on
Red000000000000
Green000000000000
Blue8012810000000128

Joined together that is 000000000000000010000000, a 24-bit number equal to 128 in decimal. The hex to binary converter does the same for any hex value.

Navy blue in CSS and code

Copy the version for your stack. The tool above updates these if you change the lightness.

/* CSS */
:root { --navy-blue: #000080; }
.button { background: var(--navy-blue); color: #FFFFFF; }

<!-- Tailwind -->
<button class="bg-[#000080] text-[#FFFFFF]">Button</button>

// SwiftUI
Color(red: 0.000, green: 0.000, blue: 0.502)

<!-- Android colors.xml -->
<color name="navy_blue">#000080</color>

# Python
navy_blue = (0, 0, 128)

Navy blue color meaning

Navy blue suggests authority, trust and seriousness, from naval and police uniforms to business suits. Banks, law firms and tech companies use it often, and it is a softer alternative to black for text and dark backgrounds.

Where the name comes from

Navy blue is named after the dark blue worn by officers of the British Royal Navy, whose first uniform regulations date from 1748. It was first called marine blue. On the web, navy is one of the 16 color names in the original HTML specification, and the CSS Color specification still defines it as #000080.

Frequently asked questions

What is the hex code for navy blue?

The navy blue hex code is #000080, RGB 0, 0, 128. In CSS the color name is navy, not navyblue.

What is the RGB code for navy blue?

RGB 0, 0, 128. Only the blue channel is on, at half strength.

What is the difference between navy and dark blue in CSS?

navy is #000080 and darkblue is #00008B. Dark blue is slightly brighter, and the difference is hard to see.

What colors make navy blue?

Blue and a little black, or blue with a small amount of orange. On a screen, it is the blue channel alone at about half strength.

What is the CMYK code for navy blue?

For #000080 it is 100, 100, 0, 50. Printers often adjust this, so check with a proof.

What color text goes on navy blue?

White. White on #000080 has a contrast ratio of 16.01 to 1. Black on it is 1.31 to 1 and cannot be read.

Scroll to Top