#5840D2#5840D2

#5840D2 is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.1% C 0.212 H 282.8°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5840D2
RGBrgb(88, 64, 210)
HSLhsl(250, 62%, 54%)
HSVhsv(250, 70%, 82%)
CMYKcmyk(58.1%, 69.5%, 0%, 17.6%)
CIE-LABlab(38.54, 49.29, -71.78)
CIE-LCHlch(38.54, 87.07, 304.48°)
OKLaboklab(49.15% 0.047 -0.2067)
OKLCHoklch(49.15% 0.212 282.8)
XYZxyz(17.4872, 10.3935, 62.0449)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5840D2 #BAD240
analogous
#4071D2 #5840D2 #A140D2
triadic
#5840D2 #D25840 #40D258
tetradic
#5840D2 #D24071 #BAD240 #40D2A1
square
#5840D2 #D24071 #BAD240 #40D2A1
split-complementary
#5840D2 #D2A140 #71D240
monochromatic
#2C1D7B #3E29AC #5840D2 #8372DE #AFA3E9

Accessibility & contrast

On white

6.82
#5840D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5840D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5840D2
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5840D2#FFFFFF#000000##FFFFFF
##5840D21.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD6
Deuteranopia (green-blind)
#0056CF
Tritanopia (blue-blind)
#0B6784
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5840d2;
/* rgb */ color: rgb(88, 64, 210);
/* oklch */ color: oklch(49.1% 0.212 282.8);
Tailwind
colors: {
  custom: {
    50: '#9477e1',
    500: '#5840d2',
    950: '#000000',
  },
}
SCSS
$custom: #5840d2;
$custom-light: #9477e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5840d2",
  "rgb": {
    "r": 88,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 249.863,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49149,
    "c": 0.21199,
    "h": 282.8
  },
  "luminance": 0.10395
}

Semantic roles & 50–950 ramp

primary
#5840D2
secondary
#CCD698
accent
#E543CA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5840D2

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

Preview Lab → · Contrast checker → · Palette generator →

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