#5940E1#5940E1

#5940E1 is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.6% C 0.230 H 281.4°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#5940E1
RGBrgb(89, 64, 225)
HSLhsl(249, 73%, 57%)
HSVhsv(249, 72%, 88%)
CMYKcmyk(60.4%, 71.6%, 0%, 11.8%)
CIE-LABlab(39.96, 53.90, -78.05)
CIE-LCHlch(39.96, 94.85, 304.63°)
OKLaboklab(50.59% 0.0456 -0.225)
OKLCHoklch(50.59% 0.23 281.4)
XYZxyz(19.5396, 11.2255, 72.3566)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5940E1 #C8E140
analogous
#4078E1 #5940E1 #AA40E1
triadic
#5940E1 #E15940 #40E159
tetradic
#5940E1 #E14078 #C8E140 #40E1AA
square
#5940E1 #E14078 #C8E140 #40E1AA
split-complementary
#5940E1 #E1AA40 #78E140
monochromatic
#291790 #391FC5 #5940E1 #8775E9 #B5AAF2

Accessibility & contrast

On white

6.47
#5940E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5940E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5940E1
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5940E1#FFFFFF#000000##FFFFFF
##5940E11.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E6
Deuteranopia (green-blind)
#0058DE
Tritanopia (blue-blind)
#006C8D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5940e1;
/* rgb */ color: rgb(89, 64, 225);
/* oklch */ color: oklch(50.6% 0.230 281.4);
Tailwind
colors: {
  custom: {
    50: '#9778ec',
    500: '#5940e1',
    950: '#000000',
  },
}
SCSS
$custom: #5940e1;
$custom-light: #9778ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5940e1",
  "rgb": {
    "r": 89,
    "g": 64,
    "b": 225
  },
  "hsl": {
    "h": 249.317,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50587,
    "c": 0.22961,
    "h": 281.4
  },
  "luminance": 0.11227
}

Semantic roles & 50–950 ramp

primary
#5940E1
secondary
#D5DF9D
accent
#F038D3
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5940E1

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5940E1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva