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