#5940EA#5940EA

#5940EA is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 51.4% C 0.240 H 280.5°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#5940EA
RGBrgb(89, 64, 234)
HSLhsl(249, 80%, 58%)
HSVhsv(249, 73%, 92%)
CMYKcmyk(62%, 72.6%, 0%, 8.2%)
CIE-LABlab(40.78, 56.55, -81.81)
CIE-LCHlch(40.78, 99.45, 304.66°)
OKLaboklab(51.42% 0.0437 -0.236)
OKLCHoklch(51.42% 0.24 280.5)
XYZxyz(20.7998, 11.7296, 78.9939)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5940EA #D1EA40
analogous
#407CEA #5940EA #AE40EA
triadic
#5940EA #EA5940 #40EA59
tetradic
#5940EA #EA407C #D1EA40 #40EAAE
square
#5940EA #EA407C #D1EA40 #40EAAE
split-complementary
#5940EA #EAAE40 #7CEA40
monochromatic
#26119E #3317D5 #5940EA #8977F0 #B9AEF6

Accessibility & contrast

On white

6.28
#5940EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5940EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5940EA
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5940EA#FFFFFF#000000##FFFFFF
##5940EA1.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066EF
Deuteranopia (green-blind)
#005AE7
Tritanopia (blue-blind)
#007092
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5940ea;
/* rgb */ color: rgb(89, 64, 234);
/* oklch */ color: oklch(51.4% 0.240 280.5);
Tailwind
colors: {
  custom: {
    50: '#9878f2',
    500: '#5940ea',
    950: '#000000',
  },
}
SCSS
$custom: #5940ea;
$custom-light: #9878f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5940ea",
  "rgb": {
    "r": 89,
    "g": 64,
    "b": 234
  },
  "hsl": {
    "h": 248.824,
    "s": 80.189,
    "l": 58.431
  },
  "oklch": {
    "l": 0.51421,
    "c": 0.24004,
    "h": 280.5
  },
  "luminance": 0.11731
}

Semantic roles & 50–950 ramp

primary
#5940EA
secondary
#DBE5A1
accent
#F731DA
background
#FAF7FF
surface
#F4EDFE
border
#CEC8D6
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5940EA

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

Preview Lab → · Contrast checker → · Palette generator →

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