Dark Blue Color Code (#00008b)

Dark Blue is #00008b in hex and rgb(0, 0, 139) — a dark blue. Below: every color format, tints and shades, harmonies and how readable it is as text.

Updated

Dark Blue
#00008b
CSS namedarkblue
Hex#00008b
RGBrgb(0, 0, 139)
HSLhsl(240 100% 27%)
HWBhwb(240 0% 45%)
CMYK100%, 100%, 0%, 45%

Tints and shades

Color harmonies

About Dark Blue

Dark Blue (darkblue) is a dark, vivid blue with the hex code #00008b, or rgb(0, 0, 139). In HSL it sits at a hue of 240°, 100% saturation and 27% lightness. It is one of the 148 named colors every browser understands, so you can write color: darkblue; instead of the hex value.

Using Dark Blue for text and backgrounds

PairingContrast ratioWCAG
Dark Blue text on white15.30 : 1AAA
Dark Blue text on black1.37 : 1fails

On a dark blue background, use white text (15.30 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.

CSS

.element {
  color: darkblue;               /* or #00008b */
  background-color: #00008b;
  border: 1px solid rgb(0 0 139 / 50%);
}

Similar named colors

Navy (#000080), Midnight Blue (#191970), Medium Blue (#0000cd), Indigo (#4b0082), Dark Slate Blue (#483d8b), Dark Slate Gray (#2f4f4f).

Color Name FinderPaste a HEX code to get its closest human-readable name and clean token names for your CSS, SCSS, JavaScript or Tailwind config.
Open the tool

Frequently asked questions

What is the hex code for dark blue?
#00008b — that is rgb(0, 0, 139) and hsl(240, 100%, 27%). In CSS you can also just write darkblue.
Is dark blue text readable on white?
Its contrast ratio on white is 15.30 : 1, which passes WCAG AA for normal text.
What colors go well with dark blue?
Its complementary color is #8a8a00; analogous colors #00458a and #45008a sit next to it on the color wheel.