#021afb
a balanced, electric blue · warm · closest name: blue
RGB
2, 26, 251
HSL
234°, 98%, 50%
CMYK
99, 90, 0, 2
Luminance
0.0772
Every format
| HEX | #021afb |
| RGB | rgb(2, 26, 251) |
| HSL | hsl(234, 98%, 50%) |
| CMYK | cmyk(99%, 90%, 0%, 2%) |
| LAB | lab(33.4 73.2 -103.8) |
| LCH | lch(33.4 127.0 305.2) |
| OKLCH | oklch(0.458 0.302 264.3) |
Copy-ready code
/* CSS */
color: #021afb;
background-color: #021afb;
/* Tailwind (arbitrary) */
class="text-[#021afb] bg-[#021afb]"
/* SCSS */
$brand: #021afb;
/* SwiftUI */
Color(red: 0.008, green: 0.102, blue: 0.984)
/* Android */
Color.parseColor("#021afb")Accessibility — WCAG contrast
Aa
#021afb on white: 8.26:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#021afb on black: 2.54:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red0.8%
Green10.2%
Blue98.4%
CMYK percentages
Cyan99.2%
Magenta89.6%
Yellow0.0%
Key (black)1.6%
Color previews
#021afb text on a black background
contrast 2.54:1
Card sample
#021afb text on a white background
contrast 8.26:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #021afb;
Background color
Panel with #021afb background
background-color: #021afb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #021afb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(2, 26, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(2, 26, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #021afb; background: linear-gradient(135deg, #021afb, #9002FB);