#00008B color (darkblue)

#00008B is rgb(0, 0, 139) in RGB and hsl(240, 100%, 27%) in HSL. It is exactly the CSS color darkblue. Use white text on it (contrast 15.30:1).

#00008Bdarkblue
HEX#00008B
RGBrgb(0, 0, 139)
RGB percentrgb(0%, 0%, 54.5%)
HSLhsl(240, 100%, 27%)
HSV / HSBhsv(240, 100%, 55%)
CMYKcmyk(100%, 100%, 0%, 45%)
CIELAB (D65)lab(14.8 50.4 -68.7)

Edit in the color converter → · Check contrast → · Shades →

About #00008B

#00008B is a dark, vivid indigo with a hue angle of 240°. It belongs to the blue family and reads as a cool color. In the RGB model blue is the strongest channel at 139 (55%) and red the weakest at 0 (0%). Colors like this are typically used for headers, navigation bars and strong brand areas.

Color conversions

HEX#00008B
RGBrgb(0, 0, 139)
RGB percentrgb(0%, 0%, 54.5%)
HSLhsl(240, 100%, 27%)
HSV / HSBhsv(240, 100%, 55%)
CMYKcmyk(100%, 100%, 0%, 45%)
CIELAB (D65)lab(14.8 50.4 -68.7)
Decimal139
Binary00000000 00000000 10001011

HEX 00 00 8B → 0, 0, 139 (each pair is a base-16 number: 0×16 + 0 = 0)

Color harmonies

Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.

Tints and shades of #00008B

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #00008BRatioAA normalAA largeAAA normalAAA large
White text15.30:1PassPassPassPass
Black text1.37:1FailFailFailFail
White text on #00008B
Black text on #00008B
#00008B text on white
#00008B text on black

Relative luminance is 0.0186 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.

Color blindness simulation

Protanopia
#002c8e

Deuteranopia
#001d89

Tritanopia
#00374f

Achromatopsia
#252525

With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 5.2). Do not rely on it alone to signal status; add an icon or text label. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.

Similar named colors

NameHEXΔE 2000
darkblue#00008b0
navy#0000801.6
midnightblue#1919706.2
indigo#4b00827.7

CSS

.element {
  color: #00008b;
  background-color: rgb(0, 0, 139);
  border: 1px solid hsl(240, 100%, 27%);
  box-shadow: 0 2px 8px rgb(0 0 139 / 50%);
}
:root { --brand: #00008b; }

Frequently asked questions

What color is #00008B?
A dark vivid indigo in the blue family. Closest CSS name: darkblue.
What is #00008B in RGB?
rgb(0, 0, 139): red 0, green 0, blue 139.
What is the complementary color of #00008B?
#8B8B00, found by rotating the hue 180°.