Cobalt Blue
#0047ABrgb(0, 71, 171)hsl(215, 100%, 34%)
Cobalt Blue is #0047AB, rgb(0, 71, 171).
Colors that go with Cobalt Blue
Complementary
Analogous
Triadic
1 of 2 backgrounds pass AA
- On whitePass8.44 : 1
- On ink blackFail2.27 : 1
About Cobalt Blue
Cobalt Blue is the hex color #0047AB, which translates to rgb(0, 71, 171) in RGB and hsl(215, 100%, 34%) in HSL. On the color wheel it sits at 215 degrees, with a saturation of 100 percent and a lightness of 34 percent. That combination gives Cobalt Blue a saturated mid tone: strong enough for buttons and links, still calm enough for larger areas.
How Cobalt Blue compares
The closest standard CSS keyword is darkslateblue (#483D8B), a CIE76 distance of 16.9 away in CIELAB. That is a visible difference, so the keyword is not a substitute here. In the Tailwind CSS 4.3.1 palette the nearest token is blue-900 (#1C398E), at a distance of 10.1. Inside this library the closest neighbour is Sapphire at 4.8. Sorted by lightness, Cobalt Blue is number 6 of the 30 blue colors here.
Text on Cobalt Blue
2 of the five common text colors below clear WCAG AA for normal text on Cobalt Blue, led by White at 8.44:1. The ratios are computed with the WCAG relative luminance formula, the same one the contrast checker uses, which opens with Cobalt Blue already loaded as the background.
| Text color | Ratio | AA normal | AA large | AAA normal |
|---|---|---|---|---|
| White #FFFFFF | 8.44:1 | Pass | Pass | Pass |
| Ink black #0F0F12 | 2.27:1 | Fail | Fail | Fail |
| Mid grey #6B7280 | 1.74:1 | Fail | Fail | Fail |
| Dark grey #374151 | 1.22:1 | Fail | Fail | Fail |
| Light grey #E5E7EB | 6.81:1 | Pass | Pass | Fail |
Building a palette around Cobalt Blue
The pairings above give you three classic starting points. The complementary color sits opposite on the wheel and works well as an accent that draws the eye. The analogous colors sit right beside Cobalt Blue for calmer, harmonious combinations. The triadic pair spaces three hues evenly for a balanced, energetic palette. Open any swatch to explore it as its own color, or open the palette generator with Cobalt Blue locked and let it fill in the rest.
Full values for Cobalt Blue
| Format | Value |
|---|---|
| HEX | #0047AB |
| RGB | rgb(0, 71, 171) |
| HSL | hsl(215, 100%, 34%) |
| HSV | hsv(215, 100%, 67%) |
| CMYK | cmyk(100%, 58%, 0%, 33%) |
| OKLCH | oklch(42.84% 0.1720 259.70) |
| CIELAB | lab(32.80 22.52 -58.44) |
Frequently asked questions
What is the RGB value of Cobalt Blue?
Cobalt Blue (#0047AB) is rgb(0, 71, 171): 0 red, 71 green and 171 blue on the 0 to 255 scale. Blue leads at 171, green follows at 71 and red trails at 0, which puts the hue at 215 degrees. In HSL the same color is hsl(215, 100%, 34%).
What colour is #0047AB?
#0047AB is Cobalt Blue, a dark blue colour with a hue of 215 degrees, 100% saturation and 34% lightness. For print the CMYK breakdown is 100% cyan, 58% magenta, 0% yellow and 33% black. Its nearest neighbour in this library is Sapphire, 4.8 away in CIELAB, a difference you can see.
Is Cobalt Blue a CSS color name?
No. Cobalt Blue is not one of the 148 CSS named colors, so write it as #0047AB. The nearest keyword is darkslateblue (#483D8B), a CIE76 distance of 16.9: far enough that the keyword reads as a different color.
What colors go with Cobalt Blue?
Opposite Cobalt Blue on the color wheel sits the complementary #AB6400, the boldest accent by hue. For a calmer scheme use the analogous neighbours #009CAB and #0F00AB; for a balanced three-color scheme use the triadic pair #AB0047 and #47AB00. Of these, #47AB00 has the most contrast against Cobalt Blue, at 2.85:1, so pair it by hue, not for legibility.
What text color is readable on Cobalt Blue?
White (#FFFFFF) is the most readable on Cobalt Blue, at 8.44:1, which also clears WCAG AAA (7:1). 2 of the 5 common text colors tested pass AA for normal text.
Use Cobalt Blue in a tool
Nearby colors
Last updated by FusionStudios. Every value on this page is computed by the same functions the tools use. How this is calculated.