White text passes AAA
8.44:1

Cobalt Blue

#0047AB
PNG

The cobalt blue hex code is #0047AB, and its RGB value is 0, 71, 171.

Cobalt blue is a strong, slightly cool blue named after the cobalt compounds behind the pigment, first made in its modern form in 1802, though cobalt had tinted glass and ceramics for centuries. #0047AB is the value most color references use. White text reads well on it at 8.4:1.

Cobalt Blue color codes

HEX#0047AB
RGBrgb(0, 71, 171)
HSLhsl(215, 100%, 34%)
OKLCHoklch(42.8% 0.172 259.7)
CMYKcmyk(100%, 58%, 0%, 33%)
CMYK is an approximate screen conversion, not for print matching.

Shades of cobalt blue

Ten lighter and ten darker shades of cobalt blue, with cobalt blue in the middle. Click a shade to copy its hex code.

LightestCobalt Blue #0047ABDarkest

Readability

White text on cobalt blueNormal text at 16px. The quick brown fox jumps over the lazy dog.
8.44:1
  • Passes AA normal
  • Passes AA large
  • Passes AAA normal
  • Passes AAA large
Dark text on cobalt blueNormal text at 16px. The quick brown fox jumps over the lazy dog.
2.49:1
  • Fails AA and AAA

Colors that go with cobalt blue

#0047AB#AB6400

Complementary

The opposite on the color wheel
#009DAB#0047AB#0E00AB

Analogous

Its two neighbors
#0047AB#AB0047#47AB00

Triadic

Three evenly spaced colors
#0047AB#AB0E00#9DAB00

Split-complementary

The two colors beside its opposite

Cobalt Blue color palettes

Monochrome

Lighter and darker versions of the same color.

Analogous

Neighbors on the color wheel, for a calm, related look.

Complementary

The color with its opposite, for strong contrast.

Triadic

Three colors evenly spaced around the wheel, with a light and dark version.

Cobalt Blue background

Plain and gradient cobalt blue backgrounds for phone and desktop wallpapers, slides and mockups, free to download.

Solid cobalt blue background

Cobalt Blue gradient background

Questions about cobalt blue

What is the hex code for cobalt blue?

The hex code for cobalt blue is #0047AB. In RGB it's rgb(0, 71, 171), and in HSL it's hsl(215, 100%, 34%).

What is the RGB value of cobalt blue?

Cobalt Blue is rgb(0, 71, 171) in RGB: 0 red, 71 green and 171 blue on a 0-255 scale.

What colors go with cobalt blue?

Its complementary color is #AB6400. For a calmer look, try the analogous colors #009DAB and #0E00AB, or one of the palettes above, which all include cobalt blue.

Is text readable on cobalt blue?

White text is the better choice, with a contrast ratio of 8.44:1. That passes WCAG AA for normal text.