CSS Named Color Reference

Navy Color Code

Navy·#000080

Blue FamilyCoolDark toneHigh saturationoklch(27.1% 0.188 264)
HEX
#000080Primary token
RGB
rgb(0, 0, 128)Screen values
HSL
hsl(240 100% 25%)Hue and lightness
CMYK
100, 100, 0, 50Print handoff
LAB
13, 48, -65Perceptual reference
OKLCH
oklch(27.1% 0.188 264)Modern perceptual

Navy is the classic CSS named dark blue at #000080. It is denser, more formal, and more structural than Royal Blue or Steel Blue, which makes it useful when you need a trustworthy anchor color for headers, sidebars, enterprise navigation, and deep interface framing.

Best text colorWhite text
Body text contrast16.01:1
Best UseDark product chrome, navigation, and high-trust interface structure

Tonal Scale

100#D1D1E8
300#8A8AC5
500#2E2E97
600#000080
800#00005C

Contrast Checks

White text on this color

Buttons, badges, and filled actions.

16.01:1AAA-level contrast

Dark text on this color

Large headings and selective UI.

1.07:1Needs more separation

This color on light surface

Links, borders, and icons on light UI.

15.21:1AAA-level contrast
Best text colorWhite textContrast 16.01:1

Professional Reference

OKLCHoklch(27.1% 0.188 264)
Relative Luminance0.0156
Source TypeCSS Named Color
Classification
Blue FamilyCoolDark toneHigh saturation
Source Context
Source Type
CSS Named Color
System
CSS
Closest Matches
Dark BlueMaterial Deep Purple 900Ant Design Purple 8

Accessibility Matrix

White text on this color

White text placed on the current color.

16.01:1AAA

Dark text on this color

Dark text or headings on the current color.

1.07:1Needs more separation

This color on light surface

Use this color for links, strokes, or icons on light UI.

15.21:1AAA

This color on dark surface

Use this color inside dark shells for strokes, tags, or icons.

1.07:1Needs more separation
Best text colorWhite textContrast 16.01:1 · AAA

Where It Works

  • Headers, side navigation, enterprise shells, and deep framing.
  • Strong for structure and hierarchy, weaker for dark-on-dark small text.
  • Pairs with white, silver or slate neutrals, and a brighter blue.

Reference Notes

Last Updated
2026-06-25
Source Library
CSS Standard Colors
Methodology
Verified source values + site guidance
Color Notes

Navy is sourced from the published CSS Standard Colors library and retained here as a searchable reference swatch for product and interface reference work.

Hue Family

Trust-building blues for enterprise and SaaS.

Source Collections
CSS Named Colors

Related Colors

Palette Starting Points

Implementation Snippets

CSS Variables
:root {
  --color-navy: #000080;
  --color-navy-rgb: 0 0 128;
}
Utility Class
class="bg-[#000080] text-white"
class="hover:bg-[#00005C] ring-1 ring-[#000080]"
JSON Token
{
  "navy": "#000080",
  "navyRgb": [0, 0, 128],
  "navyHsl": [240, 100, 25]
}