#5840DF#5840DF

#5840DF is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.3% C 0.227 H 281.3°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#5840DF
RGBrgb(88, 64, 223)
HSLhsl(249, 71%, 56%)
HSVhsv(249, 71%, 87%)
CMYKcmyk(60.5%, 71.3%, 0%, 12.5%)
CIE-LABlab(39.69, 53.18, -77.34)
CIE-LCHlch(39.69, 93.86, 304.51°)
OKLaboklab(50.32% 0.0446 -0.223)
OKLCHoklch(50.32% 0.227 281.3)
XYZxyz(19.1730, 11.0678, 70.9237)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5840DF #C7DF40
analogous
#4078DF #5840DF #A840DF
triadic
#5840DF #DF5840 #40DF58
tetradic
#5840DF #DF4078 #C7DF40 #40DFA8
square
#5840DF #DF4078 #C7DF40 #40DFA8
split-complementary
#5840DF #DFA840 #78DF40
monochromatic
#29188D #3920C1 #5840DF #8674E8 #B4A9F1

Accessibility & contrast

On white

6.53
#5840DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5840DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5840DF
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5840DF#FFFFFF#000000##FFFFFF
##5840DF1.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E4
Deuteranopia (green-blind)
#0058DC
Tritanopia (blue-blind)
#006C8B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5840df;
/* rgb */ color: rgb(88, 64, 223);
/* oklch */ color: oklch(50.3% 0.227 281.3);
Tailwind
colors: {
  custom: {
    50: '#9677ea',
    500: '#5840df',
    950: '#000000',
  },
}
SCSS
$custom: #5840df;
$custom-light: #9677ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5840df",
  "rgb": {
    "r": 88,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 249.057,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50324,
    "c": 0.22743,
    "h": 281.3
  },
  "luminance": 0.11069
}

Semantic roles & 50–950 ramp

primary
#5840DF
secondary
#D4DE9D
accent
#EE3AD3
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5840DF

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

Preview Lab → · Contrast checker → · Palette generator →

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