#166dfd
a balanced, electric blue · cool · closest name: royalblue
RGB
22, 109, 253
HSL
217°, 98%, 54%
CMYK
91, 57, 0, 1
Luminance
0.1820
Every format
| HEX | #166dfd |
| RGB | rgb(22, 109, 253) |
| HSL | hsl(217, 98%, 54%) |
| CMYK | cmyk(91%, 57%, 0%, 1%) |
| LAB | lab(49.7 30.6 -77.9) |
| LCH | lch(49.7 83.7 291.4) |
| OKLCH | oklch(0.577 0.228 260.7) |
Copy-ready code
/* CSS */
color: #166dfd;
background-color: #166dfd;
/* Tailwind (arbitrary) */
class="text-[#166dfd] bg-[#166dfd]"
/* SCSS */
$brand: #166dfd;
/* SwiftUI */
Color(red: 0.086, green: 0.427, blue: 0.992)
/* Android */
Color.parseColor("#166dfd")Accessibility — WCAG contrast
Aa
#166dfd on white: 4.53:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#166dfd on black: 4.64:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red8.6%
Green42.7%
Blue99.2%
CMYK percentages
Cyan91.3%
Magenta56.9%
Yellow0.0%
Key (black)0.8%
Color previews
#166dfd text on a black background
contrast 4.64:1
Card sample
#166dfd text on a white background
contrast 4.53:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #166dfd;
Background color
Panel with #166dfd background
background-color: #166dfd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #166dfd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(22, 109, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(22, 109, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #166dfd; background: linear-gradient(135deg, #166dfd, #5916FD);