Skip to content

#5740df

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

RGB
87, 64, 223
HSL
249°, 71%, 56%
CMYK
61, 71, 0, 13
Luminance
0.1102

Every format

HEX#5740df
RGBrgb(87, 64, 223)
HSLhsl(249, 71%, 56%)
CMYKcmyk(61%, 71%, 0%, 13%)
LABlab(39.6 53.0 -77.5)
LCHlch(39.6 93.9 304.4)
OKLCHoklch(0.502 0.228 281.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5740df on white: 6.55:1
AA ✓ pass · AA-large · AAA
Aa
#5740df on black: 3.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red34.1%
Green25.1%
Blue87.5%

CMYK percentages

Cyan61.0%
Magenta71.3%
Yellow0.0%
Key (black)12.5%

Color previews

#5740df text on a black background

contrast 3.20:1

Card sample

#5740df text on a white background

contrast 6.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5740df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5740df in the Color Lab