#5840E3#5840E3

#5840E3 is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.7% C 0.232 H 280.9°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#5840E3
RGBrgb(88, 64, 227)
HSLhsl(249, 74%, 57%)
HSVhsv(249, 72%, 89%)
CMYKcmyk(61.2%, 71.8%, 0%, 11%)
CIE-LABlab(40.06, 54.36, -79.03)
CIE-LCHlch(40.06, 95.92, 304.52°)
OKLaboklab(50.69% 0.0438 -0.2279)
OKLCHoklch(50.69% 0.232 280.9)
XYZxyz(19.7187, 11.2861, 73.7975)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5840E3 #CBE340
analogous
#407AE3 #5840E3 #A940E3
triadic
#5840E3 #E35840 #40E358
tetradic
#5840E3 #E3407A #CBE340 #40E3A9
square
#5840E3 #E3407A #CBE340 #40E3A9
split-complementary
#5840E3 #E3A940 #7AE340
monochromatic
#281693 #371DC8 #5840E3 #8775EB #B5ABF3

Accessibility & contrast

On white

6.45
#5840E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5840E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5840E3
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5840E3#FFFFFF#000000##FFFFFF
##5840E31.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E8
Deuteranopia (green-blind)
#0058E0
Tritanopia (blue-blind)
#006D8E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5840e3;
/* rgb */ color: rgb(88, 64, 227);
/* oklch */ color: oklch(50.7% 0.232 280.9);
Tailwind
colors: {
  custom: {
    50: '#9778ed',
    500: '#5840e3',
    950: '#000000',
  },
}
SCSS
$custom: #5840e3;
$custom-light: #9778ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5840e3",
  "rgb": {
    "r": 88,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 248.834,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.50693,
    "c": 0.2321,
    "h": 280.9
  },
  "luminance": 0.11288
}

Semantic roles & 50–950 ramp

primary
#5840E3
secondary
#D7E19E
accent
#F137D6
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5840E3

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

Preview Lab → · Contrast checker → · Palette generator →

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