CSS named color

DarkBlue #00008B

darkblue rgb(0, 0, 139)

DarkBlue is a dark blue with the hex code #00008B, which converts to rgb(0, 0, 139). Open #00008B in the converter to tweak it.

DarkBlue color values

HEX#00008B
HEX (shorthand)—
RGBrgb(0, 0, 139)
RGBArgba(0, 0, 139, 1)
8-digit HEX#00008BFF
HSLhsl(240, 100%, 27%)
HSV / HSB240°, 100%, 55%
CMYK100%, 100%, 0%, 45%
RGB 0–10, 0, 0.545
Decimal139
CSS keyworddarkblue

How #00008B converts to RGB

Split the hex code into three pairs and read each pair as a base-16 number: 00 → 0, 00 → 0, 8B → 139. That gives rgb(0, 0, 139). The step-by-step guide explains the math.

Shades of DarkBlue

Mixed toward black in 10% steps. Click a swatch to copy its hex.

Tints of DarkBlue

Mixed toward white in 10% steps.

Color harmonies

Hue rotations of DarkBlue on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.

Complementary

Analogous

Split-complementary

Triadic

Tetradic (square)

Contrast and accessibility

TextBackgroundRatioWCAG 2.x
White DarkBlue 15.29:1AAA
Black DarkBlue 1.37:1Fail

Use white text on a darkblue background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.

Use DarkBlue in CSS

.element {
  color: darkblue;                         /* keyword */
  background-color: #00008B;            /* hex */
  border-color: rgb(0 0 139 / 50%);    /* 50% transparent */
}

Need it semi-transparent? Append an alpha byte: #00008B80 is DarkBlue at 50% opacity. See RGBA & transparency.

Similar named colors

FAQ

What is the HEX code for DarkBlue?

The CSS named color darkblue is #00008B in hexadecimal. In CSS you can write color: darkblue; or color: #00008B; — both produce the same pixel.

What is DarkBlue in RGB?

DarkBlue is rgb(0, 0, 139): red 0, green 0, blue 139 on the 0–255 scale. As normalized 0–1 floats that is (0, 0, 0.545).

Is white or black text more readable on DarkBlue?

White text is more readable. White on #00008B has a contrast ratio of 15.29:1 (AAA), black on #00008B has 1.37:1 (Fail). WCAG AA needs 4.5:1 for normal text.

Copied!