#504abc
a balanced, vivid blue · warm · closest name: slateblue
RGB
80, 74, 188
HSL
243°, 46%, 51%
CMYK
57, 61, 0, 26
Luminance
0.1023
Every format
| HEX | #504abc |
| RGB | rgb(80, 74, 188) |
| HSL | hsl(243, 46%, 51%) |
| CMYK | cmyk(57%, 61%, 0%, 26%) |
| LAB | lab(38.3 35.3 -59.5) |
| LCH | lch(38.3 69.2 300.7) |
| OKLCH | oklch(0.482 0.173 280.0) |
Copy-ready code
/* CSS */
color: #504abc;
background-color: #504abc;
/* Tailwind (arbitrary) */
class="text-[#504abc] bg-[#504abc]"
/* SCSS */
$brand: #504abc;
/* SwiftUI */
Color(red: 0.314, green: 0.290, blue: 0.737)
/* Android */
Color.parseColor("#504abc")Accessibility — WCAG contrast
Aa
#504abc on white: 6.89:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#504abc on black: 3.05:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.4%
Green29.0%
Blue73.7%
CMYK percentages
Cyan57.4%
Magenta60.6%
Yellow0.0%
Key (black)26.3%
Color previews
#504abc text on a black background
contrast 3.05:1
Card sample
#504abc text on a white background
contrast 6.89:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #504abc;
Background color
Panel with #504abc background
background-color: #504abc;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #504abc;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(80, 74, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 74, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #504abc; background: linear-gradient(135deg, #504abc, #9C4ABC);