#504ef1
a balanced, electric blue · warm · closest name: slateblue
RGB
80, 78, 241
HSL
241°, 85%, 63%
CMYK
67, 68, 0, 6
Luminance
0.1351
Every format
| HEX | #504ef1 |
| RGB | rgb(80, 78, 241) |
| HSL | hsl(241, 85%, 63%) |
| CMYK | cmyk(67%, 68%, 0%, 6%) |
| LAB | lab(43.5 50.0 -81.3) |
| LCH | lch(43.5 95.5 301.6) |
| OKLCH | oklch(0.534 0.236 275.4) |
Copy-ready code
/* CSS */
color: #504ef1;
background-color: #504ef1;
/* Tailwind (arbitrary) */
class="text-[#504ef1] bg-[#504ef1]"
/* SCSS */
$brand: #504ef1;
/* SwiftUI */
Color(red: 0.314, green: 0.306, blue: 0.945)
/* Android */
Color.parseColor("#504ef1")Accessibility — WCAG contrast
Aa
#504ef1 on white: 5.67:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#504ef1 on black: 3.70:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.4%
Green30.6%
Blue94.5%
CMYK percentages
Cyan66.8%
Magenta67.6%
Yellow0.0%
Key (black)5.5%
Color previews
#504ef1 text on a black background
contrast 3.70:1
Card sample
#504ef1 text on a white background
contrast 5.67:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #504ef1;
Background color
Panel with #504ef1 background
background-color: #504ef1;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #504ef1;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(80, 78, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 78, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #504ef1; background: linear-gradient(135deg, #504ef1, #BC4EF1);