Skip to content

#5340df

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

RGB
83, 64, 223
HSL
247°, 71%, 56%
CMYK
63, 71, 0, 13
Luminance
0.1083

Every format

HEX#5340df
RGBrgb(83, 64, 223)
HSLhsl(247, 71%, 56%)
CMYKcmyk(63%, 71%, 0%, 13%)
LABlab(39.3 52.5 -78.0)
LCHlch(39.3 94.0 304.0)
OKLCHoklch(0.499 0.228 279.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5340df on white: 6.63:1
AA ✓ pass · AA-large · AAA
Aa
#5340df on black: 3.17:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red32.5%
Green25.1%
Blue87.5%

CMYK percentages

Cyan62.8%
Magenta71.3%
Yellow0.0%
Key (black)12.5%

Color previews

#5340df text on a black background

contrast 3.17:1

Card sample

#5340df text on a white background

contrast 6.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5340df;
Background color
Panel with #5340df background
background-color: #5340df;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5340df;
Text shadow — RGB

Soft neon halo

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

Monochromatic scale

Palettes built from #5340df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5340df in the Color Lab