Skip to content

#504af2

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

RGB
80, 74, 242
HSL
242°, 87%, 62%
CMYK
67, 69, 0, 5
Luminance
0.1301

Every format

HEX#504af2
RGBrgb(80, 74, 242)
HSLhsl(242, 87%, 62%)
CMYKcmyk(67%, 69%, 0%, 5%)
LABlab(42.8 52.6 -83.1)
LCHlch(42.8 98.3 302.3)
OKLCHoklch(0.529 0.241 275.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#504af2 on white: 5.83:1
AA ✓ pass · AA-large · AAA
Aa
#504af2 on black: 3.60:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.4%
Green29.0%
Blue94.9%

CMYK percentages

Cyan66.9%
Magenta69.4%
Yellow0.0%
Key (black)5.1%

Color previews

#504af2 text on a black background

contrast 3.60:1

Card sample

#504af2 text on a white background

contrast 5.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #504af2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #504af2 in the Color Lab