Skip to content

#531fdf

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

RGB
83, 31, 223
HSL
256°, 76%, 50%
CMYK
63, 86, 0, 13
Luminance
0.0815

Every format

HEX#531fdf
RGBrgb(83, 31, 223)
HSLhsl(256, 76%, 50%)
CMYKcmyk(63%, 86%, 0%, 13%)
LABlab(34.3 67.0 -86.3)
LCHlch(34.3 109.3 307.8)
OKLCHoklch(0.465 0.255 282.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#531fdf on white: 7.99:1
AA ✓ pass · AA-large · AAA
Aa
#531fdf on black: 2.63:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red32.5%
Green12.2%
Blue87.5%

CMYK percentages

Cyan62.8%
Magenta86.1%
Yellow0.0%
Key (black)12.5%

Color previews

#531fdf text on a black background

contrast 2.63:1

Card sample

#531fdf text on a white background

contrast 7.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #531fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #531fdf in the Color Lab