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
Black 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%);
}
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
- Royal blue#4169E1rgb(65, 105, 225)
- Navy blue#000080rgb(0, 0, 128)
- Blue#0000FFrgb(0, 0, 255)
- Baby blue#89CFF0rgb(137, 207, 240)
- Sky blue#87CEEBrgb(135, 206, 235)
- Teal#008080rgb(0, 128, 128)
See all popular colors · All HTML color names · Open cobalt blue in the color picker