Cobalt
#2563EBrgb(37, 99, 235)hsl(221, 83%, 53%)
Cobalt is #2563EB, rgb(37, 99, 235).
Colors that go with Cobalt
Complementary
Analogous
Triadic
1 of 2 backgrounds pass AA
- On whitePass5.17 : 1
- On ink blackFail3.70 : 1
About Cobalt
Cobalt is the hex color #2563EB, which translates to rgb(37, 99, 235) in RGB and hsl(221, 83%, 53%) in HSL. On the color wheel it sits at 221 degrees, with a saturation of 83 percent and a lightness of 53 percent. Its OKLCH chroma of 0.215 is high, so Cobalt is one of the more vivid blue tones here and is easy to overuse at large sizes.
How Cobalt compares
The closest standard CSS keyword is royalblue (#4169E1), a CIE76 distance of 9.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-500 (#2B7FFF), at a distance of 13.6. Inside this library the closest neighbour is Royal Blue at 9.9. Sorted by lightness, Cobalt is number 19 of the 30 blue colors here.
Text on Cobalt
One of the five common text colors below clears WCAG AA for normal text on Cobalt, led by White at 5.17:1. The ratios are computed with the WCAG relative luminance formula, the same one the contrast checker uses, which opens with Cobalt already loaded as the background.
| Text color | Ratio | AA normal | AA large | AAA normal |
|---|---|---|---|---|
| White #FFFFFF | 5.17:1 | Pass | Pass | Fail |
| Ink black #0F0F12 | 3.70:1 | Fail | Pass | Fail |
| Mid grey #6B7280 | 1.07:1 | Fail | Fail | Fail |
| Dark grey #374151 | 1.99:1 | Fail | Fail | Fail |
| Light grey #E5E7EB | 4.17:1 | Fail | Pass | Fail |
Building a palette around Cobalt
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 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 locked and let it fill in the rest.
Full values for Cobalt
| Format | Value |
|---|---|
| HEX | #2563EB |
| RGB | rgb(37, 99, 235) |
| HSL | hsl(221, 83%, 53%) |
| HSV | hsv(221, 84%, 92%) |
| CMYK | cmyk(84%, 58%, 0%, 8%) |
| OKLCH | oklch(54.61% 0.2152 262.88) |
| CIELAB | lab(46.06 30.96 -73.83) |
Frequently asked questions
What is the RGB value of Cobalt?
Cobalt (#2563EB) is rgb(37, 99, 235): 37 red, 99 green and 235 blue on the 0 to 255 scale. Blue leads at 235, green follows at 99 and red trails at 37, which puts the hue at 221 degrees. In HSL the same color is hsl(221, 83%, 53%).
What colour is #2563EB?
#2563EB is Cobalt, a mid blue colour with a hue of 221 degrees, 83% saturation and 53% lightness. For print the CMYK breakdown is 84% cyan, 58% magenta, 0% yellow and 8% black. Its nearest neighbour in this library is Royal Blue, 9.9 away in CIELAB, a difference you can see.
Is Cobalt a CSS color name?
No. Cobalt is not one of the 148 CSS named colors, so write it as #2563EB. The nearest keyword is royalblue (#4169E1), a CIE76 distance of 9.9: a visible difference, so the keyword is only a rough stand-in.
What colors go with Cobalt?
Opposite Cobalt on the color wheel sits the complementary #EBAD25, the boldest accent by hue. For a calmer scheme use the analogous neighbours #25C6EB (close to Vivid Sky) and #4A25EB; for a balanced three-color scheme use the triadic pair #EB2563 (close to Raspberry) and #63EB25. Of these, #63EB25 has the most contrast against Cobalt, at 3.31:1, enough for icons and large text.
What text color is readable on Cobalt?
White (#FFFFFF) is the most readable on Cobalt, at 5.17:1, which clears WCAG AA (4.5:1) but not AAA. 1 of the 5 common text colors tested passes AA for normal text.
Use Cobalt 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.