Skip to content

#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
RGBrgb(80, 74, 251)
HSLhsl(242, 96%, 64%)
CMYKcmyk(68%, 71%, 0%, 2%)
LABlab(43.6 55.4 -86.8)
LCHlch(43.6 102.9 302.6)
OKLCHoklch(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);

Monochromatic scale

Palettes built from #504afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #504afb in the Color Lab