#421af2
a balanced, electric blue · warm · closest name: blue
RGB
66, 26, 242
HSL
251°, 89%, 53%
CMYK
73, 89, 0, 5
Luminance
0.0831
Every format
| HEX | #421af2 |
| RGB | rgb(66, 26, 242) |
| HSL | hsl(251, 89%, 53%) |
| CMYK | cmyk(73%, 89%, 0%, 5%) |
| LAB | lab(34.6 72.3 -96.6) |
| LCH | lch(34.6 120.7 306.8) |
| OKLCH | oklch(0.470 0.280 275.1) |
Copy-ready code
/* CSS */
color: #421af2;
background-color: #421af2;
/* Tailwind (arbitrary) */
class="text-[#421af2] bg-[#421af2]"
/* SCSS */
$brand: #421af2;
/* SwiftUI */
Color(red: 0.259, green: 0.102, blue: 0.949)
/* Android */
Color.parseColor("#421af2")Accessibility — WCAG contrast
Aa
#421af2 on white: 7.89:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#421af2 on black: 2.66:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.9%
Green10.2%
Blue94.9%
CMYK percentages
Cyan72.7%
Magenta89.3%
Yellow0.0%
Key (black)5.1%
Color previews
#421af2 text on a black background
contrast 2.66:1
Card sample
#421af2 text on a white background
contrast 7.89:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #421af2;
Background color
Panel with #421af2 background
background-color: #421af2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #421af2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(66, 26, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(66, 26, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #421af2; background: linear-gradient(135deg, #421af2, #D21AF2);