#5841DC#5841DC

#5841DC is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 50.2% C 0.223 H 281.5°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#5841DC
RGBrgb(88, 65, 220)
HSLhsl(249, 69%, 56%)
HSVhsv(249, 70%, 86%)
CMYKcmyk(60%, 70.5%, 0%, 13.7%)
CIE-LABlab(39.62, 51.75, -75.76)
CIE-LCHlch(39.62, 91.74, 304.34°)
OKLaboklab(50.19% 0.0445 -0.2184)
OKLCHoklch(50.19% 0.223 281.5)
XYZxyz(18.8290, 11.0213, 68.8314)
Luminance0.1102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5841DC #C5DC41
analogous
#4177DC #5841DC #A541DC
triadic
#5841DC #DC5841 #41DC58
tetradic
#5841DC #DC4177 #C5DC41 #41DCA5
square
#5841DC #DC4177 #C5DC41 #41DCA5
split-complementary
#5841DC #DCA541 #77DC41
monochromatic
#2A1989 #3A23BD #5841DC #8575E6 #B3A8EF

Accessibility & contrast

On white

6.55
#5841DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#5841DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5841DC
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5841DC#FFFFFF#000000##FFFFFF
##5841DC1.006.553.206.55
#FFFFFF6.551.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E1
Deuteranopia (green-blind)
#0058D9
Tritanopia (blue-blind)
#006B8A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5841dc;
/* rgb */ color: rgb(88, 65, 220);
/* oklch */ color: oklch(50.2% 0.223 281.5);
Tailwind
colors: {
  custom: {
    50: '#9578e8',
    500: '#5841dc',
    950: '#000000',
  },
}
SCSS
$custom: #5841dc;
$custom-light: #9578e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5841dc",
  "rgb": {
    "r": 88,
    "g": 65,
    "b": 220
  },
  "hsl": {
    "h": 248.903,
    "s": 68.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50187,
    "c": 0.22285,
    "h": 281.5
  },
  "luminance": 0.11023
}

Semantic roles & 50–950 ramp

primary
#5841DC
secondary
#D3DD9C
accent
#EC3CD2
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5841DC

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

Preview Lab → · Contrast checker → · Palette generator →

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