#5840EA#5840EA

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

Color values

HEX#5840EA
RGBrgb(88, 64, 234)
HSLhsl(248, 80%, 58%)
HSVhsv(248, 73%, 92%)
CMYKcmyk(62.4%, 72.6%, 0%, 8.2%)
CIE-LABlab(40.70, 56.43, -81.94)
CIE-LCHlch(40.70, 99.50, 304.56°)
OKLaboklab(51.35% 0.0424 -0.2364)
OKLCHoklch(51.35% 0.24 280.2)
XYZxyz(20.7045, 11.6804, 78.9894)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5840EA #D2EA40
analogous
#407DEA #5840EA #AD40EA
triadic
#5840EA #EA5840 #40EA58
tetradic
#5840EA #EA407D #D2EA40 #40EAAD
square
#5840EA #EA407D #D2EA40 #40EAAD
split-complementary
#5840EA #EAAD40 #7DEA40
monochromatic
#25119E #3217D5 #5840EA #8877F0 #B8AEF6

Accessibility & contrast

On white

6.29
#5840EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5840EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5840EA
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5840EA#FFFFFF#000000##FFFFFF
##5840EA1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5840ea;
/* rgb */ color: rgb(88, 64, 234);
/* oklch */ color: oklch(51.3% 0.240 280.2);
Tailwind
colors: {
  custom: {
    50: '#9878f2',
    500: '#5840ea',
    950: '#000000',
  },
}
SCSS
$custom: #5840ea;
$custom-light: #9878f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5840ea",
  "rgb": {
    "r": 88,
    "g": 64,
    "b": 234
  },
  "hsl": {
    "h": 248.471,
    "s": 80.189,
    "l": 58.431
  },
  "oklch": {
    "l": 0.51345,
    "c": 0.24022,
    "h": 280.2
  },
  "luminance": 0.11682
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5840EA

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

Preview Lab → · Contrast checker → · Palette generator →

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