Skip to content

Dark Blue

Hex #00008B, rgb(0 0 139). A blue CSS named color.

Open in palette generator

Dark Blue color codes

Click any value to copy it.

HEX
RGB
HSL
HSV
HWB
CMYK
OKLCH
OKLab
Lab
LCH
CSS keyword

About Dark Blue

Dark Blue is a very dark saturated blue with the hex code #00008B. In RGB it is made of 0 red, 0 green and 139 blue; in HSL its hue is 240°, with 100% saturation and 27% lightness. Its perceptual lightness (OKLCH L) is 28.8%.

It is a CSS named color, so you can write "darkblue" anywhere CSS accepts a color. Against white it has a contrast ratio of 15.30:1 and against black 1.37:1, so white text reads better on it and passes WCAG AA for normal text.

Tints, shades and tones

Dark Blue mixed step by step with white, black and middle gray (#808080).

Tints (with white)

Shades (with black)

Tones (with gray)

Dark Blue 50-950 scale

A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.

Colors that go with Dark Blue

Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.

Complementary

Analogous

Triadic

Split complementary

Contrast and readability

WCAG 2 contrast of Dark Blue with white and black. The readable text color on Dark Blue is white.

Dark Blue textSmall text on white

On white15.30:1

  • AA pass
  • AA Large pass
  • AAA pass
  • UI 3:1 pass

APCA Lc 100

Dark Blue textSmall text on black

On black1.37:1

  • AA fail
  • AA Large fail
  • AAA fail
  • UI 3:1 fail

APCA Lc 0

White text on Dark Blue (#FFFFFF)

Test any pair in the contrast checker.

Color blindness preview

How Dark Blue appears with each type of color vision deficiency (simulated with the Machado model).

  • Protanopia#002C8E
  • Deuteranopia#001D89
  • Tritanopia#00374F
  • Protanomaly#00248D
  • Deuteranomaly#001A8A
  • Tritanomaly#002274
  • Achromatopsia#252525

Colors similar to Dark Blue

The closest named colors by perceptual difference (OKLab).

Use Dark Blue in CSS and Tailwind

CSS
.dark-blue {
  color: darkblue; /* #00008B */
  background-color: rgb(0 0 139);
  border-color: oklch(28.8% 0.199 264.1);
}
Tailwind CSS
/* Tailwind CSS v4: bg-dark-blue-500, text-dark-blue-700... */
@theme {
  --color-dark-blue-50: #F8FAFF;
  --color-dark-blue-100: #E7EFFF;
  --color-dark-blue-200: #CEDFFF;
  --color-dark-blue-300: #AAC6FF;
  --color-dark-blue-400: #78A3FF;
  --color-dark-blue-500: #578BFF;
  --color-dark-blue-600: #3A73FF;
  --color-dark-blue-700: #1551FF;
  --color-dark-blue-800: #0033F2;
  --color-dark-blue-900: #002BD3;
  --color-dark-blue-950: #00008B;
}

<!-- or the exact color, no config -->
<div class="bg-[#00008B] text-[#FFFFFF]">…</div>