#020f1f
a deep, electric blue · cool · closest name: black
RGB
2, 15, 31
HSL
213°, 88%, 7%
CMYK
94, 52, 0, 88
Luminance
0.0045
Every format
| HEX | #020f1f |
| RGB | rgb(2, 15, 31) |
| HSL | hsl(213, 88%, 7%) |
| CMYK | cmyk(94%, 52%, 0%, 88%) |
| LAB | lab(4.1 0.5 -11.8) |
| LCH | lch(4.1 11.8 272.4) |
| OKLCH | oklch(0.166 0.040 250.9) |
Copy-ready code
/* CSS */
color: #020f1f;
background-color: #020f1f;
/* Tailwind (arbitrary) */
class="text-[#020f1f] bg-[#020f1f]"
/* SCSS */
$brand: #020f1f;
/* SwiftUI */
Color(red: 0.008, green: 0.059, blue: 0.122)
/* Android */
Color.parseColor("#020f1f")Accessibility — WCAG contrast
Aa
#020f1f on white: 19.25:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#020f1f on black: 1.09:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red0.8%
Green5.9%
Blue12.2%
CMYK percentages
Cyan93.5%
Magenta51.6%
Yellow0.0%
Key (black)87.8%
Color previews
#020f1f text on a black background
contrast 1.09:1
Card sample
#020f1f text on a white background
contrast 19.25:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #020f1f;
Background color
Panel with #020f1f background
background-color: #020f1f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #020f1f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(2, 15, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(2, 15, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #020f1f; background: linear-gradient(135deg, #020f1f, #08021F);