#504afb
a balanced, electric blue · warm · closest name: blue
RGB
80, 74, 251
HSL
242°, 96%, 64%
CMYK
68, 71, 0, 2
Luminance
0.1357
Every format
| HEX | #504afb |
| RGB | rgb(80, 74, 251) |
| HSL | hsl(242, 96%, 64%) |
| CMYK | cmyk(68%, 71%, 0%, 2%) |
| LAB | lab(43.6 55.4 -86.8) |
| LCH | lch(43.6 102.9 302.6) |
| OKLCH | oklch(0.537 0.252 275.3) |
Copy-ready code
/* CSS */
color: #504afb;
background-color: #504afb;
/* Tailwind (arbitrary) */
class="text-[#504afb] bg-[#504afb]"
/* SCSS */
$brand: #504afb;
/* SwiftUI */
Color(red: 0.314, green: 0.290, blue: 0.984)
/* Android */
Color.parseColor("#504afb")Accessibility — WCAG contrast
Aa
#504afb on white: 5.65:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#504afb on black: 3.71:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.4%
Green29.0%
Blue98.4%
CMYK percentages
Cyan68.1%
Magenta70.5%
Yellow0.0%
Key (black)1.6%
Color previews
#504afb text on a black background
contrast 3.71:1
Card sample
#504afb text on a white background
contrast 5.65:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #504afb;
Background color
Panel with #504afb background
background-color: #504afb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #504afb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(80, 74, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 74, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #504afb; background: linear-gradient(135deg, #504afb, #C64AFB);