Dark Blue Color

HEX #00008B · rgb(0, 0, 139) · hsl(240, 100%, 27%)

Dark Blue color codes

Dark Blue is one of the named colors every browser understands. In CSS you can write it as darkblue or #00008B.

FormatValue
HEX#00008B
RGBrgb(0, 0, 139)
HSLhsl(240, 100%, 27%)
CMYK100%, 100%, 0%, 45%
CSS namedarkblue
.example {
  color: darkblue;
  background-color: #00008B;
  border-color: rgb(0, 0, 139);
}

Colors that go with dark blue

These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.

#8B8B00Complementary
#00468BAnalogous
#46008BAnalogous
#8B0000Triadic
Dark Red
#008B00Triadic

Tints and shades of dark blue

Tints mix the color with white; shades mix it with black.

#E6E6F390% white
#BFBFE275% white
#9999D160% white
#7373BF45% white
#4D4DAE30% white
#26269C15% white
#00008BBase
Dark Blue
#00007615% black
#00006130% black
#00004C45% black
#00003860% black
#00002375% black
#00000E90% black

Contrast and readability

Black text
1.37:1
fails
White text
15.30:1
passes AA and AAA

Use white text on dark blue. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.

Frequently asked questions

What is the hex code for dark blue?

The hex code for dark blue is #00008B.

What is the RGB value of dark blue?

Dark Blue is rgb(0, 0, 139): 0 red, 0 green and 139 blue on a 0 to 255 scale.

What color goes with dark blue?

Its complementary color is #8B8B00, which is closest to the named color olive. Analogous and triadic matches are listed on this page.

Should text on dark blue be black or white?

Use white text. The contrast ratio is 1.37:1 with black and 15.30:1 with white. WCAG AA asks for at least 4.5:1 for normal text.

Similar named colors

Pick any other color with the color picker, or browse all named colors.