#185df4
a balanced, electric blue · cool · closest name: royalblue
RGB
24, 93, 244
HSL
221°, 91%, 53%
CMYK
90, 62, 0, 4
Luminance
0.1455
Every format
| HEX | #185df4 |
| RGB | rgb(24, 93, 244) |
| HSL | hsl(221, 91%, 53%) |
| CMYK | cmyk(90%, 62%, 0%, 4%) |
| LAB | lab(45.0 37.4 -80.6) |
| LCH | lch(45.0 88.9 294.9) |
| OKLCH | oklch(0.540 0.235 262.8) |
Copy-ready code
/* CSS */
color: #185df4;
background-color: #185df4;
/* Tailwind (arbitrary) */
class="text-[#185df4] bg-[#185df4]"
/* SCSS */
$brand: #185df4;
/* SwiftUI */
Color(red: 0.094, green: 0.365, blue: 0.957)
/* Android */
Color.parseColor("#185df4")Accessibility — WCAG contrast
Aa
#185df4 on white: 5.37:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#185df4 on black: 3.91:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red9.4%
Green36.5%
Blue95.7%
CMYK percentages
Cyan90.2%
Magenta61.9%
Yellow0.0%
Key (black)4.3%
Color previews
#185df4 text on a black background
contrast 3.91:1
Card sample
#185df4 text on a white background
contrast 5.37:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #185df4;
Background color
Panel with #185df4 background
background-color: #185df4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #185df4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(24, 93, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(24, 93, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #185df4; background: linear-gradient(135deg, #185df4, #6618F4);