Skip to content

#504dfb

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

RGB
80, 77, 251
HSL
241°, 96%, 64%
CMYK
68, 69, 0, 2
Luminance
0.1398

Every format

HEX#504dfb
RGBrgb(80, 77, 251)
HSLhsl(241, 96%, 64%)
CMYKcmyk(68%, 69%, 0%, 2%)
LABlab(44.2 53.8 -85.8)
LCHlch(44.2 101.2 302.1)
OKLCHoklch(0.542 0.249 275.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#504dfb on white: 5.53:1
AA ✓ pass · AA-large · AAA
Aa
#504dfb on black: 3.80:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.4%
Green30.2%
Blue98.4%

CMYK percentages

Cyan68.1%
Magenta69.3%
Yellow0.0%
Key (black)1.6%

Color previews

#504dfb text on a black background

contrast 3.80:1

Card sample

#504dfb text on a white background

contrast 5.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #504dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #504dfb in the Color Lab