#166cd8
a balanced, electric blue · cool · closest name: royalblue
RGB
22, 108, 216
HSL
213°, 82%, 47%
CMYK
90, 50, 0, 15
Luminance
0.1585
Every format
| HEX | #166cd8 |
| RGB | rgb(22, 108, 216) |
| HSL | hsl(213, 82%, 47%) |
| CMYK | cmyk(90%, 50%, 0%, 15%) |
| LAB | lab(46.8 17.0 -61.9) |
| LCH | lch(46.8 64.2 285.3) |
| OKLCH | oklch(0.546 0.183 257.3) |
Copy-ready code
/* CSS */
color: #166cd8;
background-color: #166cd8;
/* Tailwind (arbitrary) */
class="text-[#166cd8] bg-[#166cd8]"
/* SCSS */
$brand: #166cd8;
/* SwiftUI */
Color(red: 0.086, green: 0.424, blue: 0.847)
/* Android */
Color.parseColor("#166cd8")Accessibility — WCAG contrast
Aa
#166cd8 on white: 5.04:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#166cd8 on black: 4.17:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red8.6%
Green42.4%
Blue84.7%
CMYK percentages
Cyan89.8%
Magenta50.0%
Yellow0.0%
Key (black)15.3%
Color previews
#166cd8 text on a black background
contrast 4.17:1
Card sample
#166cd8 text on a white background
contrast 5.04:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #166cd8;
Background color
Panel with #166cd8 background
background-color: #166cd8;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #166cd8;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(22, 108, 216, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(22, 108, 216, 0.45);
Border & gradient
Gradient panel
border: 3px solid #166cd8; background: linear-gradient(135deg, #166cd8, #4116D8);