#5840D9#5840D9

#5840D9 is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.8% C 0.220 H 282.0°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#5840D9
RGBrgb(88, 64, 217)
HSLhsl(249, 67%, 55%)
HSVhsv(249, 71%, 85%)
CMYKcmyk(59.4%, 70.5%, 0%, 14.9%)
CIE-LABlab(39.16, 51.39, -74.79)
CIE-LCHlch(39.16, 90.75, 304.49°)
OKLaboklab(49.78% 0.0458 -0.2155)
OKLCHoklch(49.78% 0.22 282)
XYZxyz(18.3784, 10.7500, 66.7387)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5840D9 #C1D940
analogous
#4074D9 #5840D9 #A540D9
triadic
#5840D9 #D95840 #40D958
tetradic
#5840D9 #D94074 #C1D940 #40D9A5
square
#5840D9 #D94074 #C1D940 #40D9A5
split-complementary
#5840D9 #D9A540 #74D940
monochromatic
#2B1A84 #3C24B7 #5840D9 #8573E3 #B1A6ED

Accessibility & contrast

On white

6.67
#5840D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5840D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5840D9
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5840D9#FFFFFF#000000##FFFFFF
##5840D91.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DE
Deuteranopia (green-blind)
#0057D6
Tritanopia (blue-blind)
#006988
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5840d9;
/* rgb */ color: rgb(88, 64, 217);
/* oklch */ color: oklch(49.8% 0.220 282.0);
Tailwind
colors: {
  custom: {
    50: '#9577e6',
    500: '#5840d9',
    950: '#000000',
  },
}
SCSS
$custom: #5840d9;
$custom-light: #9577e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5840d9",
  "rgb": {
    "r": 88,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 249.412,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49777,
    "c": 0.22034,
    "h": 282
  },
  "luminance": 0.10751
}

Semantic roles & 50–950 ramp

primary
#5840D9
secondary
#D0DA9A
accent
#EA3ECF
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5840D9

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

Preview Lab → · Contrast checker → · Palette generator →

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