#004df4
a balanced, electric blue · cool · closest name: royalblue
RGB
0, 77, 244
HSL
221°, 100%, 48%
CMYK
100, 68, 0, 4
Luminance
0.1184
Every format
| HEX | #004df4 |
| RGB | rgb(0, 77, 244) |
| HSL | hsl(221, 100%, 48%) |
| CMYK | cmyk(100%, 68%, 0%, 4%) |
| LAB | lab(41.0 46.7 -87.3) |
| LCH | lch(41.0 99.0 298.2) |
| OKLCH | oklch(0.509 0.255 263.0) |
Copy-ready code
/* CSS */
color: #004df4;
background-color: #004df4;
/* Tailwind (arbitrary) */
class="text-[#004df4] bg-[#004df4]"
/* SCSS */
$brand: #004df4;
/* SwiftUI */
Color(red: 0.000, green: 0.302, blue: 0.957)
/* Android */
Color.parseColor("#004df4")Accessibility — WCAG contrast
Aa
#004df4 on white: 6.24:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#004df4 on black: 3.37:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red0.0%
Green30.2%
Blue95.7%
CMYK percentages
Cyan100.0%
Magenta68.4%
Yellow0.0%
Key (black)4.3%
Color previews
#004df4 text on a black background
contrast 3.37:1
Card sample
#004df4 text on a white background
contrast 6.24:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #004df4;
Background color
Panel with #004df4 background
background-color: #004df4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #004df4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(0, 77, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(0, 77, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #004df4; background: linear-gradient(135deg, #004df4, #5600F4);