Skip to content

#5940ff

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

RGB
89, 64, 255
HSL
248°, 100%, 63%
CMYK
65, 75, 0, 0
Luminance
0.1301

Every format

HEX#5940ff
RGBrgb(89, 64, 255)
HSLhsl(248, 100%, 63%)
CMYKcmyk(65%, 75%, 0%, 0%)
LABlab(42.8 62.7 -90.3)
LCHlch(42.8 109.9 304.8)
OKLCHoklch(0.534 0.264 278.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5940ff on white: 5.83:1
AA ✓ pass · AA-large · AAA
Aa
#5940ff on black: 3.60:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red34.9%
Green25.1%
Blue100.0%

CMYK percentages

Cyan65.1%
Magenta74.9%
Yellow0.0%
Key (black)0.0%

Color previews

#5940ff text on a black background

contrast 3.60:1

Card sample

#5940ff text on a white background

contrast 5.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5940ff;
Background color
Panel with #5940ff background
background-color: #5940ff;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5940ff;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(89, 64, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(89, 64, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5940ff;
background: linear-gradient(135deg, #5940ff, #D840FF);

Monochromatic scale

Palettes built from #5940ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5940ff in the Color Lab