#166fdf
a balanced, electric blue · cool · closest name: royalblue
RGB
22, 111, 223
HSL
213°, 82%, 48%
CMYK
90, 50, 0, 13
Luminance
0.1687
Every format
| HEX | #166fdf |
| RGB | rgb(22, 111, 223) |
| HSL | hsl(213, 82%, 48%) |
| CMYK | cmyk(90%, 50%, 0%, 13%) |
| LAB | lab(48.1 17.8 -63.8) |
| LCH | lch(48.1 66.2 285.6) |
| OKLCH | oklch(0.558 0.188 257.4) |
Copy-ready code
/* CSS */
color: #166fdf;
background-color: #166fdf;
/* Tailwind (arbitrary) */
class="text-[#166fdf] bg-[#166fdf]"
/* SCSS */
$brand: #166fdf;
/* SwiftUI */
Color(red: 0.086, green: 0.435, blue: 0.875)
/* Android */
Color.parseColor("#166fdf")Accessibility — WCAG contrast
Aa
#166fdf on white: 4.80:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#166fdf on black: 4.37:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red8.6%
Green43.5%
Blue87.5%
CMYK percentages
Cyan90.1%
Magenta50.2%
Yellow0.0%
Key (black)12.5%
Color previews
#166fdf text on a black background
contrast 4.37:1
Card sample
#166fdf text on a white background
contrast 4.80:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #166fdf;
Background color
Panel with #166fdf background
background-color: #166fdf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #166fdf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(22, 111, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(22, 111, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #166fdf; background: linear-gradient(135deg, #166fdf, #4316DF);