Skip to content
PantoneTools
blue
CSS Named Colors

Navy

navy · #000080

HEX

#000080

RGB

rgb(0, 0, 128)

CMYK

cmyk(100%, 100%, 0%, 50%)

HSL

hsl(240, 100%, 25%)

LAB

lab(13.0, 47.5, -64.7)

What is Navy?

Navy is the navy reference in the CSS Named Colors. Its sRGB value is #000080 (rgb 0, 0, 128). It sits in the blue family. The 147 named colors defined by the W3C CSS Color Module Level 4 specification — usable directly in CSS as keywords like 'crimson' or 'rebeccapurple'. See disclaimer for accuracy and trademark notes.

Accessibility

WCAG 2.1 contrast checks for Navy as a background.

Black text on this color

Sample text · 1.31 : 1
AA Normal
AA Large
AAA Normal
AAA Large

White text on this color

Sample text · 16.01 : 1
AA Normal
AA Large
AAA Normal
AAA Large

Shades, tints & tonal scale of Navy

An 11-step tonal scale derived from Navy (#000080). Click any swatch to copy its HEX. Use these as a starting point for design tokens, hover states, and disabled states in a design system.

Copied #EBEBF5

50

#EBEBF5

#EBEBF5

Copied #D6D6EB

100

#D6D6EB

#D6D6EB

Copied #ADADD6

200

#ADADD6

#ADADD6

Copied #8080C0

300

#8080C0

#8080C0

Copied #4040A0

400

#4040A0

#4040A0

Copied #000080

500

#000080

#000080

Copied #00006D

600

#00006D

#00006D

Copied #000053

700

#000053

#000053

Copied #00003A

800

#00003A

#00003A

Copied #000020

900

#000020

#000020

Copied #00000F

950

#00000F

#00000F

Lighter tints (mixed with white)

Copied #6C6C9C

15%

#6C6C9C

Copied #9595B3

30%

#9595B3

Copied #B3B3C7

45%

#B3B3C7

Copied #CBCBD8

60%

#CBCBD8

Copied #E1E1E8

75%

#E1E1E8

Darker shades (mixed with black)

Copied #000077

15%

#000077

Copied #00006C

30%

#00006C

Copied #000061

45%

#000061

Copied #000053

60%

#000053

Copied #000042

75%

#000042

Color harmonies for Navy

Classic color-theory harmonies derived from rotating the hue of Navy. Use these to build accent palettes, brand systems, and accessible UI color pairings.

Complementary

180° opposite — strongest contrast

Copied #000080

#000080

#000080

Copied #7F8000

#7F8000

#7F8000

Triadic

Three colors 120° apart

Copied #000080

#000080

#000080

Copied #800000

#800000

#800000

Copied #008000

#008000

#008000

Analogous

Two neighbors ±30° on the wheel

Copied #004080

#004080

#004080

Copied #000080

#000080

#000080

Copied #400080

#400080

#400080

Split-complementary

Base + two colors flanking its complement

Copied #000080

#000080

#000080

Copied #804000

#804000

#804000

Copied #408000

#408000

#408000

Tetradic

Two complementary pairs

Copied #000080

#000080

#000080

Copied #80007F

#80007F

#80007F

Copied #7F8000

#7F8000

#7F8000

Copied #008000

#008000

#008000

Square

Four colors evenly spaced 90° apart

Copied #000080

#000080

#000080

Copied #800040

#800040

#800040

Copied #7F8000

#7F8000

#7F8000

Copied #008040

#008040

#008040

Navy in every color space

Full conversion of Navy across the color spaces designers and developers actually use — including OKLCH (the perceptually-uniform space that powers Tailwind v4 and CSS Color Module Level 4) and HWB.

HEX

#000080

RGB

rgb(0, 0, 128)

CMYK

cmyk(100%, 100%, 0%, 50%)

HSL

hsl(240, 100%, 25%)

HSV

hsv(240, 100%, 50%)

HWB

hwb(240 0% 50%)

CIE Lab

lab(13.0 47.5 -64.7)

OKLCH

oklch(27.1% 0.188 264.1)

XYZ (D65)

xyz(3.89, 1.56, 20.51)

Copy-ready code for Navy

Drop-in snippets for CSS, Tailwind, Sass, iOS Swift, and Android XML. Click the copy button on any snippet to put it on your clipboard.

CSS

color: #000080;
background-color: #000080;

CSS variable

:root {
  --color-navy: #000080;
}

Tailwind config

// tailwind.config.js
colors: {
  'navy': '#000080',
}

Sass

$color-navy: #000080;

Swift UIColor

UIColor(red: 0.000, green: 0.000, blue: 0.502, alpha: 1.0)

Android XML

<color name="navy">#000080</color>

Closest match in every color system

The nearest Navy equivalent in every other color system on this site, ranked by ΔE2000 perceptual distance. Useful when translating between design-system, web-standard, and industrial color references.

Closest in CSS Named Colors

Top 6 ΔE2000-closest entries within the same collection.

Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.

Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.

Copied #1E2460

RAL 5005

#1E2460

Signal blue

Copied #20214F

RAL 5002

#20214F

Ultramarine blue

Copied #252850

RAL 5022

#252850

Night blue

Copied #0E294B

RAL 5010

#0E294B

Gentian blue

Copied #1D334A

RAL 5020

#1D334A

Ocean blue

Copied #063971

RAL 5017

#063971

Traffic blue

FAQ about Navy

What is the HEX code for Navy?

Navy (navy) has the HEX code #000080. In RGB it is rgb(0, 0, 128), and in CMYK it is cmyk(100%, 100%, 0%, 50%).

What is the OKLCH value of Navy?

Navy converts to oklch(0.271 0.188 264.1). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Navy accessible for body text?

Used as a background, Navy has a contrast ratio of 1.31:1 with black text and 16.01:1 with white text. WCAG 2.1 AA requires 4.5:1 for normal text. The current recommendation is to use white text and verify in real UI context.

What is the closest Pantone to Navy?

The closest Pantone reference to Navy by ΔE2000 perceptual distance is Pantone Reflex Blue C (#001489). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.

What is the closest RAL color to Navy?

The closest RAL Classic reference to Navy by ΔE2000 distance is RAL 5005 (Signal blue, #1E2460). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Navy?

The complementary color (180° opposite on the HSL color wheel) of Navy is #7F8000. Use it for high-contrast accents, error states, or call-to-action pairings.

Data provenance & source

CSS Named Colors (CSS Color Module Level 4)

The 147 named colors defined by the W3C CSS Color Module Level 4 specification. Origin: VGA (16) + X11 (rest) + 'rebeccapurple'. Use as a reference for web color names that all browsers natively support. Names like 'crimson' or 'rebeccapurple' work as CSS values without any framework.

Source type
derived
Confidence
high
License
W3C permissive document license
Last reviewed
2026-05-24

Workflow tags

css
web-standard
named-keyword
blue

CSS named colors are sRGB digital values defined for browsers. For print, convert to a process-appropriate color and proof against substrate.

CSS Named Colors · Navy — #000080 | PantoneTools