#166ef1
a balanced, electric blue · cool · closest name: royalblue
RGB
22, 110, 241
HSL
216°, 89%, 52%
CMYK
91, 54, 0, 6
Luminance
0.1767
Every format
| HEX | #166ef1 |
| RGB | rgb(22, 110, 241) |
| HSL | hsl(216, 89%, 52%) |
| CMYK | cmyk(91%, 54%, 0%, 6%) |
| LAB | lab(49.1 25.4 -72.3) |
| LCH | lch(49.1 76.6 289.4) |
| OKLCH | oklch(0.570 0.212 259.6) |
Copy-ready code
/* CSS */
color: #166ef1;
background-color: #166ef1;
/* Tailwind (arbitrary) */
class="text-[#166ef1] bg-[#166ef1]"
/* SCSS */
$brand: #166ef1;
/* SwiftUI */
Color(red: 0.086, green: 0.431, blue: 0.945)
/* Android */
Color.parseColor("#166ef1")Accessibility — WCAG contrast
Aa
#166ef1 on white: 4.63:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#166ef1 on black: 4.53:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red8.6%
Green43.1%
Blue94.5%
CMYK percentages
Cyan90.9%
Magenta54.4%
Yellow0.0%
Key (black)5.5%
Color previews
#166ef1 text on a black background
contrast 4.53:1
Card sample
#166ef1 text on a white background
contrast 4.63:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #166ef1;
Background color
Panel with #166ef1 background
background-color: #166ef1;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #166ef1;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(22, 110, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(22, 110, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #166ef1; background: linear-gradient(135deg, #166ef1, #5016F1);