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%.
#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
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Cobalt text on white | 8.83 : 1 | 90 | AAA — any text |
| Cobalt text on black | 2.38 : 1 | -12 | Fails for text |
| White text on Cobalt | 8.83 : 1 | -94 | AAA — any text |
| Black text on Cobalt | 2.38 : 1 | 14 | Fails for text |
Palettes with this color
- Midnight Blue & Lavender
- Rusty Red & Pale Sky Blue
- Steel Blue & Gainsboro
- Copper & Lavender
- Midnight Blue & Gainsboro
- Light Teal & Dark Blue Grey
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
- Dusk Blue #26538D
- Twilight Blue #0A437A
- Deep Sea Blue #015482
- Dark Slate Blue #483D8B
- Light Navy Blue #2E5A88
- Sapphire #2138AB
- Twilight #4E518B
- Dusk #4E5481
- Marine Blue #01386A
- Dusky Blue #475F94
Sources and licences
- xkcd color survey (Randall Munroe, CC0 1.0)
- Afoli — conversions, shades, harmonies, WCAG 2.x / APCA contrast (tools/color/color-core.js)