#024cf0
a balanced, electric blue · cool · closest name: royalblue
RGB
2, 76, 240
HSL
221°, 98%, 48%
CMYK
99, 68, 0, 6
Luminance
0.1147
Every format
| HEX | #024cf0 |
| RGB | rgb(2, 76, 240) |
| HSL | hsl(221, 98%, 48%) |
| CMYK | cmyk(99%, 68%, 0%, 6%) |
| LAB | lab(40.4 46.0 -86.0) |
| LCH | lch(40.4 97.5 298.1) |
| OKLCH | oklch(0.504 0.252 263.0) |
Copy-ready code
/* CSS */
color: #024cf0;
background-color: #024cf0;
/* Tailwind (arbitrary) */
class="text-[#024cf0] bg-[#024cf0]"
/* SCSS */
$brand: #024cf0;
/* SwiftUI */
Color(red: 0.008, green: 0.298, blue: 0.941)
/* Android */
Color.parseColor("#024cf0")Accessibility — WCAG contrast
Aa
#024cf0 on white: 6.37:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#024cf0 on black: 3.29:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red0.8%
Green29.8%
Blue94.1%
CMYK percentages
Cyan99.2%
Magenta68.3%
Yellow0.0%
Key (black)5.9%
Color previews
#024cf0 text on a black background
contrast 3.29:1
Card sample
#024cf0 text on a white background
contrast 6.37:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #024cf0;
Background color
Panel with #024cf0 background
background-color: #024cf0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #024cf0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(2, 76, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(2, 76, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #024cf0; background: linear-gradient(135deg, #024cf0, #5702F0);