#240df4
a balanced, electric blue · warm · closest name: blue
RGB
36, 13, 244
HSL
246°, 91%, 50%
CMYK
85, 95, 0, 4
Luminance
0.0719
Every format
| HEX | #240df4 |
| RGB | rgb(36, 13, 244) |
| HSL | hsl(246, 91%, 50%) |
| CMYK | cmyk(85%, 95%, 0%, 4%) |
| LAB | lab(32.2 74.8 -101.7) |
| LCH | lch(32.2 126.3 306.3) |
| OKLCH | oklch(0.450 0.294 268.1) |
Copy-ready code
/* CSS */
color: #240df4;
background-color: #240df4;
/* Tailwind (arbitrary) */
class="text-[#240df4] bg-[#240df4]"
/* SCSS */
$brand: #240df4;
/* SwiftUI */
Color(red: 0.141, green: 0.051, blue: 0.957)
/* Android */
Color.parseColor("#240df4")Accessibility — WCAG contrast
Aa
#240df4 on white: 8.61:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#240df4 on black: 2.44:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red14.1%
Green5.1%
Blue95.7%
CMYK percentages
Cyan85.2%
Magenta94.7%
Yellow0.0%
Key (black)4.3%
Color previews
#240df4 text on a black background
contrast 2.44:1
Card sample
#240df4 text on a white background
contrast 8.61:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #240df4;
Background color
Panel with #240df4 background
background-color: #240df4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #240df4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(36, 13, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(36, 13, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #240df4; background: linear-gradient(135deg, #240df4, #BE0DF4);