#504eb2
a balanced, soft blue · warm · closest name: slateblue
RGB
80, 78, 178
HSL
241°, 39%, 50%
CMYK
55, 56, 0, 30
Luminance
0.1037
Every format
| HEX | #504eb2 |
| RGB | rgb(80, 78, 178) |
| HSL | hsl(241, 39%, 50%) |
| CMYK | cmyk(55%, 56%, 0%, 30%) |
| LAB | lab(38.5 29.6 -53.2) |
| LCH | lch(38.5 60.9 299.1) |
| OKLCH | oklch(0.482 0.155 279.8) |
Copy-ready code
/* CSS */
color: #504eb2;
background-color: #504eb2;
/* Tailwind (arbitrary) */
class="text-[#504eb2] bg-[#504eb2]"
/* SCSS */
$brand: #504eb2;
/* SwiftUI */
Color(red: 0.314, green: 0.306, blue: 0.698)
/* Android */
Color.parseColor("#504eb2")Accessibility — WCAG contrast
Aa
#504eb2 on white: 6.83:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#504eb2 on black: 3.07:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.4%
Green30.6%
Blue69.8%
CMYK percentages
Cyan55.1%
Magenta56.2%
Yellow0.0%
Key (black)30.2%
Color previews
#504eb2 text on a black background
contrast 3.07:1
Card sample
#504eb2 text on a white background
contrast 6.83:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #504eb2;
Background color
Panel with #504eb2 background
background-color: #504eb2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #504eb2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(80, 78, 178, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 78, 178, 0.45);
Border & gradient
Gradient panel
border: 3px solid #504eb2; background: linear-gradient(135deg, #504eb2, #934EB2);