Skip to content

#504af5

a balanced, electric blue · warm · closest name: slateblue

RGB
80, 74, 245
HSL
242°, 90%, 63%
CMYK
67, 70, 0, 4
Luminance
0.1320

Every format

HEX#504af5
RGBrgb(80, 74, 245)
HSLhsl(242, 90%, 63%)
CMYKcmyk(67%, 70%, 0%, 4%)
LABlab(43.0 53.5 -84.3)
LCHlch(43.0 99.9 302.4)
OKLCHoklch(0.532 0.245 275.7)

Copy-ready code

/* CSS */
color: #504af5;
background-color: #504af5;
/* Tailwind (arbitrary) */
class="text-[#504af5] bg-[#504af5]"
/* SCSS */
$brand: #504af5;
/* SwiftUI */
Color(red: 0.314, green: 0.290, blue: 0.961)
/* Android */
Color.parseColor("#504af5")

Accessibility — WCAG contrast

Aa
#504af5 on white: 5.77:1
AA ✓ pass · AA-large · AAA
Aa
#504af5 on black: 3.64:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.4%
Green29.0%
Blue96.1%

CMYK percentages

Cyan67.3%
Magenta69.8%
Yellow0.0%
Key (black)3.9%

Color previews

#504af5 text on a black background

contrast 3.64:1

Card sample

#504af5 text on a white background

contrast 5.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #504af5;
Background color
Panel with #504af5 background
background-color: #504af5;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #504af5;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(80, 74, 245, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 74, 245, 0.45);
Border & gradient
Gradient panel
border: 3px solid #504af5;
background: linear-gradient(135deg, #504af5, #C24AF5);

Monochromatic scale

Palettes built from #504af5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #504af5 in the Color Lab