#5841E2#5841E2

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

Color values

HEX#5841E2
RGBrgb(88, 65, 226)
HSLhsl(249, 74%, 57%)
HSVhsv(249, 71%, 89%)
CMYKcmyk(61.1%, 71.2%, 0%, 11.4%)
CIE-LABlab(40.16, 53.54, -78.30)
CIE-LCHlch(40.16, 94.85, 304.36°)
OKLaboklab(50.73% 0.0433 -0.2258)
OKLCHoklch(50.73% 0.23 280.9)
XYZxyz(19.6379, 11.3448, 73.0917)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5841E2 #CBE241
analogous
#417BE2 #5841E2 #A841E2
triadic
#5841E2 #E25841 #41E258
tetradic
#5841E2 #E2417B #CBE241 #41E2A8
square
#5841E2 #E2417B #CBE241 #41E2A8
split-complementary
#5841E2 #E2A841 #7BE241
monochromatic
#281692 #371EC7 #5841E2 #8776EA #B5ABF2

Accessibility & contrast

On white

6.42
#5841E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5841E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5841E2
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5841E2#FFFFFF#000000##FFFFFF
##5841E21.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E7
Deuteranopia (green-blind)
#0059DF
Tritanopia (blue-blind)
#006D8D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5841e2;
/* rgb */ color: rgb(88, 65, 226);
/* oklch */ color: oklch(50.7% 0.230 280.9);
Tailwind
colors: {
  custom: {
    50: '#9678ec',
    500: '#5841e2',
    950: '#000000',
  },
}
SCSS
$custom: #5841e2;
$custom-light: #9678ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5841e2",
  "rgb": {
    "r": 88,
    "g": 65,
    "b": 226
  },
  "hsl": {
    "h": 248.571,
    "s": 73.516,
    "l": 57.059
  },
  "oklch": {
    "l": 0.50734,
    "c": 0.22992,
    "h": 280.9
  },
  "luminance": 0.11346
}

Semantic roles & 50–950 ramp

primary
#5841E2
secondary
#D7E09F
accent
#F038D6
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5841E2

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

Preview Lab → · Contrast checker → · Palette generator →

#5841E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva