#185dfd
a balanced, electric blue · cool · closest name: royalblue
RGB
24, 93, 253
HSL
222°, 98%, 54%
CMYK
91, 63, 0, 1
Luminance
0.1511
Every format
| HEX | #185dfd |
| RGB | rgb(24, 93, 253) |
| HSL | hsl(222, 98%, 54%) |
| CMYK | cmyk(91%, 63%, 0%, 1%) |
| LAB | lab(45.8 40.7 -84.4) |
| LCH | lch(45.8 93.7 295.8) |
| OKLCH | oklch(0.548 0.246 263.1) |
Copy-ready code
/* CSS */
color: #185dfd;
background-color: #185dfd;
/* Tailwind (arbitrary) */
class="text-[#185dfd] bg-[#185dfd]"
/* SCSS */
$brand: #185dfd;
/* SwiftUI */
Color(red: 0.094, green: 0.365, blue: 0.992)
/* Android */
Color.parseColor("#185dfd")Accessibility — WCAG contrast
Aa
#185dfd on white: 5.22:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#185dfd on black: 4.02:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red9.4%
Green36.5%
Blue99.2%
CMYK percentages
Cyan90.5%
Magenta63.2%
Yellow0.0%
Key (black)0.8%
Color previews
#185dfd text on a black background
contrast 4.02:1
Card sample
#185dfd text on a white background
contrast 5.22:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #185dfd;
Background color
Panel with #185dfd background
background-color: #185dfd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #185dfd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(24, 93, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(24, 93, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #185dfd; background: linear-gradient(135deg, #185dfd, #6C18FD);