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.
Cobalt color codes
| HEX | #0047AB | |
|---|---|---|
| RGB | rgb(0, 71, 171) | |
| HSL | hsl(215, 100%, 34%) | |
| HSV | 215°, 100%, 67% | |
| CMYK | 100%, 58%, 0%, 33% | |
| OKLCH | oklch(42.8% 0.172 259.7) | |
| Tailwind | bg-[#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.
Colors that go with Cobalt
Complementary
Analogous
Triadic
Split complementary
Cobalt contrast
- AA text pass
- AAA text pass
- AA large pass
- 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
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.
