Skip to content

#502fdf

a balanced, vivid blue · warm · closest name: blue

RGB
80, 47, 223
HSL
251°, 73%, 53%
CMYK
64, 79, 0, 13
Luminance
0.0907

Every format

HEX#502fdf
RGBrgb(80, 47, 223)
HSLhsl(251, 73%, 53%)
CMYKcmyk(64%, 79%, 0%, 13%)
LABlab(36.1 60.6 -83.3)
LCHlch(36.1 103.0 306.0)
OKLCHoklch(0.476 0.244 280.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#502fdf on white: 7.46:1
AA ✓ pass · AA-large · AAA
Aa
#502fdf on black: 2.81:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.4%
Green18.4%
Blue87.5%

CMYK percentages

Cyan64.1%
Magenta78.9%
Yellow0.0%
Key (black)12.5%

Color previews

#502fdf text on a black background

contrast 2.81:1

Card sample

#502fdf text on a white background

contrast 7.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #502fdf;
Background color
Panel with #502fdf background
background-color: #502fdf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #502fdf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(80, 47, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 47, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #502fdf;
background: linear-gradient(135deg, #502fdf, #C52FDF);

Monochromatic scale

Palettes built from #502fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #502fdf in the Color Lab