#5841D9#5841D9

#5841D9 is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 49.9% C 0.219 H 281.8°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#5841D9
RGBrgb(88, 65, 217)
HSLhsl(249, 67%, 55%)
HSVhsv(249, 70%, 85%)
CMYKcmyk(59.4%, 70%, 0%, 14.9%)
CIE-LABlab(39.35, 50.85, -74.48)
CIE-LCHlch(39.35, 90.18, 304.32°)
OKLaboklab(49.92% 0.045 -0.2146)
OKLCHoklch(49.92% 0.219 281.8)
XYZxyz(18.4353, 10.8638, 66.7576)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5841D9 #C2D941
analogous
#4176D9 #5841D9 #A441D9
triadic
#5841D9 #D95841 #41D958
tetradic
#5841D9 #D94176 #C2D941 #41D9A4
square
#5841D9 #D94176 #C2D941 #41D9A4
split-complementary
#5841D9 #D9A441 #76D941
monochromatic
#2B1B85 #3B25B8 #5841D9 #8574E3 #B2A7ED

Accessibility & contrast

On white

6.62
#5841D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5841D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5841D9
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5841D9#FFFFFF#000000##FFFFFF
##5841D91.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DE
Deuteranopia (green-blind)
#0057D6
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5841d9;
/* rgb */ color: rgb(88, 65, 217);
/* oklch */ color: oklch(49.9% 0.219 281.8);
Tailwind
colors: {
  custom: {
    50: '#9578e6',
    500: '#5841d9',
    950: '#000000',
  },
}
SCSS
$custom: #5841d9;
$custom-light: #9578e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5841d9",
  "rgb": {
    "r": 88,
    "g": 65,
    "b": 217
  },
  "hsl": {
    "h": 249.079,
    "s": 66.667,
    "l": 55.294
  },
  "oklch": {
    "l": 0.49916,
    "c": 0.21928,
    "h": 281.8
  },
  "luminance": 0.10865
}

Semantic roles & 50–950 ramp

primary
#5841D9
secondary
#D1DB9B
accent
#EA3ED0
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5841D9

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

Preview Lab → · Contrast checker → · Palette generator →

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