#504cdf
a balanced, vivid blue · warm · closest name: slateblue
RGB
80, 76, 223
HSL
242°, 70%, 59%
CMYK
64, 66, 0, 13
Luminance
0.1220
Every format
| HEX | #504cdf |
| RGB | rgb(80, 76, 223) |
| HSL | hsl(242, 70%, 59%) |
| CMYK | cmyk(64%, 66%, 0%, 13%) |
| LAB | lab(41.5 45.4 -74.3) |
| LCH | lch(41.5 87.1 301.4) |
| OKLCH | oklch(0.515 0.216 276.8) |
Copy-ready code
/* CSS */
color: #504cdf;
background-color: #504cdf;
/* Tailwind (arbitrary) */
class="text-[#504cdf] bg-[#504cdf]"
/* SCSS */
$brand: #504cdf;
/* SwiftUI */
Color(red: 0.314, green: 0.298, blue: 0.875)
/* Android */
Color.parseColor("#504cdf")Accessibility — WCAG contrast
Aa
#504cdf on white: 6.10:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#504cdf on black: 3.44:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.4%
Green29.8%
Blue87.5%
CMYK percentages
Cyan64.1%
Magenta65.9%
Yellow0.0%
Key (black)12.5%
Color previews
#504cdf text on a black background
contrast 3.44:1
Card sample
#504cdf text on a white background
contrast 6.10:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #504cdf;
Background color
Panel with #504cdf background
background-color: #504cdf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #504cdf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(80, 76, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 76, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #504cdf; background: linear-gradient(135deg, #504cdf, #B24CDF);