Cobalt Color

Cobalt is a vivid, dark blue with hex code #0047AB. Here are its RGB, HSL, CMYK and OKLCH values, tints and shades, matching colours and CSS.

#0047ABRGB 0 71 171
Cobalt#0047AB

Cobalt color codes

HEX#0047AB
RGBrgb(0, 71, 171)
HSLhsl(215, 100%, 34%)
HSV215°, 100%, 67%
CMYK100%, 58%, 0%, 33%
OKLCHoklch(42.8% 0.172 259.7)
Tailwindbg-[#0047ab]

Closest Tailwind colour: blue-800 (#1E40AF). Convert any colour in the Color Converter.

About Cobalt

Cobalt (#0047AB) is a vivid, dark blue. In the RGB model it is 0% red, 28% green and 67% blue; its hue angle is 215°, with 100% saturation and 34% lightness. For print, the CMYK equivalent is 100% cyan, 58% magenta, 0% yellow and 33% black.

It is a cool colour and appears in our shades of blue. Text on it reads best in white (8.4:1 contrast).

Cobalt tints and shades

Tints mix cobalt with white; shades mix it with black. Click to copy.

10%
20%
30%
40%
50%
60%
70%
80%
90%
Base
-10%
-20%
-30%
-40%
-50%
-60%
-70%
-80%
-90%

Colors that go with Cobalt

Complementary

Cobalt

Analogous

Cobalt

Triadic

Cobalt

Split complementary

Cobalt
near Brass

Cobalt contrast

White text8.44:1
  • AA text pass
  • AAA text pass
  • AA large pass
Black text2.49:1
  • AA text fail
  • AAA text fail
  • AA large fail

Using Cobalt in CSS

.brand {
  color: #0047ab;
}
.button {
  background: #0047ab;
  color: #fff;
}
.hero {
  background: linear-gradient(135deg, #5987c8, #0047ab, #002e6f);
}

Similar colors

Gradients with Cobalt

Exact matchRevolut

Revolut

Very closePaddle

Paddle

Very closeCoursera

Coursera

Very closeBMW

BMW

Very closeOkta

Okta

Very closePandora

Pandora

More gradients near #0047AB →

Cobalt FAQ

What color is Cobalt?

Cobalt is a vivid, dark blue. Its hex code is #0047AB and it is a cool colour.

What is the hex code for Cobalt?

The hex code for Cobalt is #0047AB. In RGB that is rgb(0, 71, 171), and in HSL hsl(215, 100%, 34%).

What is Cobalt in CMYK?

Cobalt is roughly C 100%, M 58%, Y 0%, K 33% in CMYK. Screen-to-print conversion depends on the printer profile, so check a proof for brand colours.

What colors go well with Cobalt?

Its complementary colour is #AD6500. For a calmer palette use its analogous colours #009FAD and #0E00AD, or tints and shades of Cobalt itself.

Is white or black text better on Cobalt?

White text reads better on Cobalt: 8.4:1 contrast, against 2.5:1 for black. WCAG asks for 4.5:1 for body text.

Browse colors