Home / Colors / Cobalt blue hex code

Cobalt blue hex code

A deep, vivid blue named after cobalt-based pigments.

#0047AB Cobalt Blue
HEX#0047AB
RGBrgb(0, 71, 171)
HSLhsl(215, 100%, 34%)
HSVhsv(215, 100%, 67%)
CMYKcmyk(100%, 58%, 0%, 33%)
Advertisement

About cobalt blue

A deep, vivid blue named after cobalt-based pigments. Its hex code is #0047AB, which is rgb(0, 71, 171): 0 red, 71 green and 171 blue on a scale of 0 to 255.

Cobalt blue is a cool color.

Cobalt blue tints and shades

Lighter tints (mixed with white) and darker shades (mixed with black) of cobalt blue. Click any of them to copy its hex code.

Colors that go with cobalt blue

Complementary

The opposite color on the color wheel, for strong contrast.

Analogous

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

Triadic

Three colors evenly spaced around the wheel, for a balanced, lively palette.

Split complementary

The two colors either side of the complement: contrast without clashing.

Text on cobalt blue

White text

8.43:1 · Passes AAA for all text

Black text

2.48:1 · Fails for text

For readable text, WCAG asks for a contrast ratio of at least 4.5:1 (3:1 for large text). White text is the better choice on cobalt blue. Test other combinations with the contrast checker.

Using cobalt blue in CSS

.element {
  color: #0047AB;
  background-color: rgb(0 71 171);
  border-color: hsl(215 100% 34%);
}
Advertisement

Frequently asked questions

What is the hex code for cobalt blue?

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

What colors go with cobalt blue?

Its complementary color is #AB6400, which gives strong contrast. For a softer look, use analogous colors #009CAB and #0E00AB. Cobalt blue also pairs well with white.

Is cobalt blue warm or cool?

Cobalt blue is a cool color.

Should I use white or black text on cobalt blue?

Use white text. Its contrast ratio on cobalt blue is 8.43:1, versus 2.48:1 for black.

Similar colors

See all popular colors · All HTML color names · Open cobalt blue in the color picker

Advertisement