Cobalt Blue Color #0047AB
Cobalt Blue color codes
#0047ABrgb(0, 71, 171)hsl(215.1, 100%, 33.5%)hsv(215.1, 100%, 67.1%)oklch(0.428 0.172 259.7)--cobalt-blue: #0047AB;White text is the readable choice on Cobalt Blue: 8.43:1.
About the name cobalt blue
Named after the blue pigment based on cobalt(II) aluminate; Wikipedia gives 1777 as its first recorded use as an English color name. (Wikipedia)
Cobalt Blue is not a CSS color name, so use its HEX or RGB code in CSS.
The Wikipedia color box gives no source for 0047AB and no second listing was found (not in the List of colors pages).
Cobalt Blue shades and tints
Click a swatch to copy it. The middle swatch is the base color; steps are even in OKLCH lightness.
Colors that go with cobalt blue
Text contrast on cobalt blue
Cobalt Blue color palettes
Cobalt Blue gradients
background: linear-gradient(135deg, #A1BEED 0%, #0047AB 100%);background: linear-gradient(90deg, #0047AB 0%, #0E00AB 100%);background: linear-gradient(135deg, #0047AB 0%, #AB6400 100%);Cobalt Blue in CSS
:root {
--cobalt-blue: #0047AB;
--cobalt-blue-rgb: 0, 71, 171;
}
.button {
background: var(--cobalt-blue);
color: #FFFFFF; /* 8.43:1 */
}Tailwind: bg-[#0047AB] · text-[#0047AB]
Colors similar to cobalt blue
Frequently asked questions
What is the hex code for cobalt blue?
Cobalt Blue is #0047AB. In RGB it is rgb(0, 71, 171) and in HSL hsl(215.1, 100%, 33.5%).
What colors go with cobalt blue?
On the color wheel, cobalt blue (#0047AB) pairs with its complement #AB6400, its analogous colors #009DAB and #0E00AB, and the triadic colors #AB0047 and #47AB00. Lighter tints and darker shades of cobalt blue itself also make an easy monochromatic scheme.
What text color works on cobalt blue?
White text is the readable choice on Cobalt Blue: 8.43:1. Cobalt Blue text on white is 8.43:1 (passes WCAG AA for normal text) and on black 2.48:1 (fails).
What is the RGB value of cobalt blue?
Cobalt Blue (#0047AB) is red 0, green 71 and blue 171: rgb(0, 71, 171).
Sources
- Wikipedia, Cobalt blue (revision 1378908414); text adapted under CC BY-SA 4.0
- Cross-checked: no second listing found
- RGB, HSL, OKLCH, shades, harmonies and contrast are computed with SwatchNest's tested color library. Updated 2026-11-24