AfoliOpen Afoli →

Cobalt color #1E488F

Cobalt is a color name from the xkcd color survey for the hex code #1E488F — RGB 30, 72, 143, HSL 218°, 65%, 34%.

Open in Afoli Colour tools →

#1E488FCobalt

Color codes

HEX
#1E488F
RGB
rgb(30, 72, 143)
HSL
hsl(218, 65%, 34%)
CMYK
79%, 50%, 0%, 44%
OKLCH
oklch(41.4% 0.127 260.3)

Tints and shades

#EFF6FF#C5DBFF#9BC1FF#76A6F5#5E8CD9#4773BE#305BA3#194389#012B70#00194A#000827

Color harmonies

Complementary
#1E488F#634500
Analogous
#005370#1E488F#4D3B8A
Triadic
#1E488F#82252D#1B5B0A
Split complementary
#1E488F#783500#4F4F00
Tetradic
#1E488F#7B2755#634500#005945

Contrast with text

PairWCAG 2.x ratioAPCA LcResult
Cobalt text on white8.83 : 190AAA — any text
Cobalt text on black2.38 : 1-12Fails for text
White text on Cobalt8.83 : 1-94AAA — any text
Black text on Cobalt2.38 : 114Fails for text

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

Palettes with this color

Frequently asked questions

What is the hex code of Cobalt?

Cobalt has the hex code #1E488F, which is RGB 30, 72, 143 and HSL 218°, 65%, 34%.

Which text color reads best on Cobalt?

White text: contrast 8.83 : 1 (black text: 2.38 : 1).

Which colors go well with Cobalt?

Its complementary color is #634500; analogous colors are #005370 and #4D3B8A; a triadic set adds #82252D and #1B5B0A.

Similar colors

Sources and licences

Updated November 21, 2026