#004dfd
a balanced, electric blue · cool · closest name: blue
RGB
0, 77, 253
HSL
222°, 100%, 50%
CMYK
100, 70, 0, 1
Luminance
0.1240
Every format
| HEX | #004dfd |
| RGB | rgb(0, 77, 253) |
| HSL | hsl(222, 100%, 50%) |
| CMYK | cmyk(100%, 70%, 0%, 1%) |
| LAB | lab(41.8 49.9 -90.9) |
| LCH | lch(41.8 103.7 298.8) |
| OKLCH | oklch(0.518 0.266 263.2) |
Copy-ready code
/* CSS */
color: #004dfd;
background-color: #004dfd;
/* Tailwind (arbitrary) */
class="text-[#004dfd] bg-[#004dfd]"
/* SCSS */
$brand: #004dfd;
/* SwiftUI */
Color(red: 0.000, green: 0.302, blue: 0.992)
/* Android */
Color.parseColor("#004dfd")Accessibility — WCAG contrast
Aa
#004dfd on white: 6.03:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#004dfd on black: 3.48:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red0.0%
Green30.2%
Blue99.2%
CMYK percentages
Cyan100.0%
Magenta69.6%
Yellow0.0%
Key (black)0.8%
Color previews
#004dfd text on a black background
contrast 3.48:1
Card sample
#004dfd text on a white background
contrast 6.03:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #004dfd;
Background color
Panel with #004dfd background
background-color: #004dfd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #004dfd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(0, 77, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(0, 77, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #004dfd; background: linear-gradient(135deg, #004dfd, #5B00FD);