#166cf3
a balanced, electric blue · cool · closest name: royalblue
RGB
22, 108, 243
HSL
217°, 90%, 52%
CMYK
91, 56, 0, 5
Luminance
0.1737
Every format
| HEX | #166cf3 |
| RGB | rgb(22, 108, 243) |
| HSL | hsl(217, 90%, 52%) |
| CMYK | cmyk(91%, 56%, 0%, 5%) |
| LAB | lab(48.7 27.4 -74.0) |
| LCH | lch(48.7 78.9 290.3) |
| OKLCH | oklch(0.567 0.217 260.2) |
Copy-ready code
/* CSS */
color: #166cf3;
background-color: #166cf3;
/* Tailwind (arbitrary) */
class="text-[#166cf3] bg-[#166cf3]"
/* SCSS */
$brand: #166cf3;
/* SwiftUI */
Color(red: 0.086, green: 0.424, blue: 0.953)
/* Android */
Color.parseColor("#166cf3")Accessibility — WCAG contrast
Aa
#166cf3 on white: 4.69:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#166cf3 on black: 4.47:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red8.6%
Green42.4%
Blue95.3%
CMYK percentages
Cyan90.9%
Magenta55.6%
Yellow0.0%
Key (black)4.7%
Color previews
#166cf3 text on a black background
contrast 4.47:1
Card sample
#166cf3 text on a white background
contrast 4.69:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #166cf3;
Background color
Panel with #166cf3 background
background-color: #166cf3;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #166cf3;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(22, 108, 243, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(22, 108, 243, 0.45);
Border & gradient
Gradient panel
border: 3px solid #166cf3; background: linear-gradient(135deg, #166cf3, #5416F3);