#021f39
a deep, electric blue · cool · closest name: black
RGB
2, 31, 57
HSL
208°, 93%, 12%
CMYK
97, 46, 0, 78
Luminance
0.0129
Every format
| HEX | #021f39 |
| RGB | rgb(2, 31, 57) |
| HSL | hsl(208, 93%, 12%) |
| CMYK | cmyk(97%, 46%, 0%, 78%) |
| LAB | lab(11.2 0.9 -19.9) |
| LCH | lch(11.2 19.9 272.6) |
| OKLCH | oklch(0.234 0.061 249.0) |
Copy-ready code
/* CSS */
color: #021f39;
background-color: #021f39;
/* Tailwind (arbitrary) */
class="text-[#021f39] bg-[#021f39]"
/* SCSS */
$brand: #021f39;
/* SwiftUI */
Color(red: 0.008, green: 0.122, blue: 0.224)
/* Android */
Color.parseColor("#021f39")Accessibility — WCAG contrast
Aa
#021f39 on white: 16.70:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#021f39 on black: 1.26:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red0.8%
Green12.2%
Blue22.4%
CMYK percentages
Cyan96.5%
Magenta45.6%
Yellow0.0%
Key (black)77.6%
Color previews
#021f39 text on a black background
contrast 1.26:1
Card sample
#021f39 text on a white background
contrast 16.70:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #021f39;
Background color
Panel with #021f39 background
background-color: #021f39;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #021f39;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(2, 31, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(2, 31, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #021f39; background: linear-gradient(135deg, #021f39, #0A0239);