#024cff
a balanced, electric blue · cool · closest name: blue
RGB
2, 76, 255
HSL
223°, 100%, 50%
CMYK
99, 70, 0, 0
Luminance
0.1240
Every format
| HEX | #024cff |
| RGB | rgb(2, 76, 255) |
| HSL | hsl(223, 100%, 50%) |
| CMYK | cmyk(99%, 70%, 0%, 0%) |
| LAB | lab(41.8 51.3 -92.0) |
| LCH | lch(41.8 105.3 299.1) |
| OKLCH | oklch(0.519 0.269 263.4) |
Copy-ready code
/* CSS */
color: #024cff;
background-color: #024cff;
/* Tailwind (arbitrary) */
class="text-[#024cff] bg-[#024cff]"
/* SCSS */
$brand: #024cff;
/* SwiftUI */
Color(red: 0.008, green: 0.298, blue: 1.000)
/* Android */
Color.parseColor("#024cff")Accessibility — WCAG contrast
Aa
#024cff on white: 6.03:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#024cff on black: 3.48:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red0.8%
Green29.8%
Blue100.0%
CMYK percentages
Cyan99.2%
Magenta70.2%
Yellow0.0%
Key (black)0.0%
Color previews
#024cff text on a black background
contrast 3.48:1
Card sample
#024cff text on a white background
contrast 6.03:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #024cff;
Background color
Panel with #024cff background
background-color: #024cff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #024cff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(2, 76, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(2, 76, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #024cff; background: linear-gradient(135deg, #024cff, #6102FF);