Skip to content

#5b40df

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

RGB
91, 64, 223
HSL
250°, 71%, 56%
CMYK
59, 71, 0, 13
Luminance
0.1122

Every format

HEX#5b40df
RGBrgb(91, 64, 223)
HSLhsl(250, 71%, 56%)
CMYKcmyk(59%, 71%, 0%, 13%)
LABlab(39.9 53.6 -76.9)
LCHlch(39.9 93.7 304.9)
OKLCHoklch(0.506 0.227 282.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5b40df on white: 6.47:1
AA ✓ pass · AA-large · AAA
Aa
#5b40df on black: 3.24:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red35.7%
Green25.1%
Blue87.5%

CMYK percentages

Cyan59.2%
Magenta71.3%
Yellow0.0%
Key (black)12.5%

Color previews

#5b40df text on a black background

contrast 3.24:1

Card sample

#5b40df text on a white background

contrast 6.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5b40df;
Background color
Panel with #5b40df background
background-color: #5b40df;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5b40df;
Text shadow — RGB

Soft neon halo

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

Monochromatic scale

Palettes built from #5b40df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5b40df in the Color Lab