#5840D8#5840D8

#5840D8 is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.7% C 0.219 H 282.1°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5840D8
RGBrgb(88, 64, 216)
HSLhsl(249, 66%, 55%)
HSVhsv(249, 70%, 85%)
CMYKcmyk(59.3%, 70.4%, 0%, 15.3%)
CIE-LABlab(39.07, 51.09, -74.37)
CIE-LCHlch(39.07, 90.22, 304.49°)
OKLaboklab(49.69% 0.0459 -0.2143)
OKLCHoklch(49.69% 0.219 282.1)
XYZxyz(18.2487, 10.6981, 66.0558)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5840D8 #C0D840
analogous
#4074D8 #5840D8 #A440D8
triadic
#5840D8 #D85840 #40D858
tetradic
#5840D8 #D84074 #C0D840 #40D8A4
square
#5840D8 #D84074 #C0D840 #40D8A4
split-complementary
#5840D8 #D8A440 #74D840
monochromatic
#2B1B83 #3C25B6 #5840D8 #8473E2 #B1A6ED

Accessibility & contrast

On white

6.69
#5840D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5840D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5840D8
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5840D8#FFFFFF#000000##FFFFFF
##5840D81.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5840d8;
/* rgb */ color: rgb(88, 64, 216);
/* oklch */ color: oklch(49.7% 0.219 282.1);
Tailwind
colors: {
  custom: {
    50: '#9577e5',
    500: '#5840d8',
    950: '#000000',
  },
}
SCSS
$custom: #5840d8;
$custom-light: #9577e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5840d8",
  "rgb": {
    "r": 88,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 249.474,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.49687,
    "c": 0.21916,
    "h": 282.1
  },
  "luminance": 0.10699
}

Semantic roles & 50–950 ramp

primary
#5840D8
secondary
#D0DA9A
accent
#E93FCE
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5840D8

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

Preview Lab → · Contrast checker → · Palette generator →

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