Huebook

Dark Blue (CSS)

Dark Blue (CSS) is a near-black, saturated blue-violet color with the hex code #00008B (hue 240°, saturation 100%, lightness 27%). It is also the CSS named color darkblue.

#00008B
NameHEXRGBHSLCMYKOKLCH
Dark Blue (CSS)#00008B0, 0, 139240°, 100%, 27%100, 100, 0, 4528.8% 0.199 264

Contrast with white text 15.30:1, with black text 1.37:1 — use white text on Dark Blue (CSS).

darkblue is one of the 148 named colors in CSS, with exactly this value, so color: darkblue works in any browser without a hex code.

Huebook · Maintained by Iris Marlow (pen name) · automated checks · Data: color-name-list (MIT) for names; CSS Color Module Level 4 (W3C) for CSS named colors · Updated · How the checks work

Adjust Dark Blue (CSS)

Move the sliders to make Dark Blue (CSS) lighter, darker, more or less vivid, or shift its hue. The nearest named colors update as you go.

Dark Blue (CSS)
  • HEX#00008B
  • RGBrgb(0 0 139)
  • HSLhsl(240 100% 27%)

Variations of Dark Blue (CSS)

Text on Dark Blue (CSS)

White textThe quick brown fox15.30:1 · AA pass · AAA pass
Black textThe quick brown fox1.37:1 · AA fail · AAA fail

WCAG 2 asks for 4.5:1 for body text and 3:1 for large text (AA), and 7:1 and 4.5:1 for the stricter AAA level.

Dark Blue (CSS) with color blindness

Normal #00008B
Protanopia #002C8E
Deuteranopia #001D89
Tritanopia #00374F

How Dark Blue (CSS) appears with a complete loss of red (protanopia), green (deuteranopia) or blue (tritanopia) cones, simulated with the Machado, Oliveira and Fernandes (2009) model. Red-green color blindness affects about 1 in 12 men and 1 in 200 women, so do not rely on color alone to carry meaning.

Tints and shades

#CCCCFF
#8080FF
#3333FF
#0000E6
#000099
#00004D

Colors that go with Dark Blue (CSS)

Six color schemes built on Dark Blue (CSS) with classic harmony rules. The complementary scheme pairs it with Old Asparagus (#929000), the color opposite it on the color wheel.

Nearest CSS named colors

Gradients with Dark Blue (CSS)

Similar dark blue colors

Questions

What is the hex code for Dark Blue (CSS)?

#00008B — RGB 0, 0, 139, HSL 240°, 100%, 27%.

Is Dark Blue (CSS) a warm or cool color?

Cool — its hue sits at 240° on the color wheel.