#5841CC#5841CC

#5841CC is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.8% C 0.204 H 283.4°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5841CC
RGBrgb(88, 65, 204)
HSLhsl(250, 58%, 53%)
HSVhsv(250, 68%, 80%)
CMYKcmyk(56.9%, 68.1%, 0%, 20%)
CIE-LABlab(38.22, 46.94, -68.82)
CIE-LCHlch(38.22, 83.31, 304.30°)
OKLaboklab(48.76% 0.0472 -0.198)
OKLCHoklch(48.76% 0.204 283.4)
XYZxyz(16.8105, 10.2139, 58.2007)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5841CC #B5CC41
analogous
#416FCC #5841CC #9D41CC
triadic
#5841CC #CC5841 #41CC58
tetradic
#5841CC #CC416F #B5CC41 #41CC9D
square
#5841CC #CC416F #B5CC41 #41CC9D
split-complementary
#5841CC #CC9D41 #6FCC41
monochromatic
#2D1F74 #402CA4 #5841CC #8271D9 #ADA1E6

Accessibility & contrast

On white

6.90
#5841CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5841CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5841CC
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5841CC#FFFFFF#000000##FFFFFF
##5841CC1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED0
Deuteranopia (green-blind)
#0055C9
Tritanopia (blue-blind)
#1A6581
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5841cc;
/* rgb */ color: rgb(88, 65, 204);
/* oklch */ color: oklch(48.8% 0.204 283.4);
Tailwind
colors: {
  custom: {
    50: '#9377dd',
    500: '#5841cc',
    950: '#000000',
  },
}
SCSS
$custom: #5841cc;
$custom-light: #9377dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5841cc",
  "rgb": {
    "r": 88,
    "g": 65,
    "b": 204
  },
  "hsl": {
    "h": 249.928,
    "s": 57.676,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48764,
    "c": 0.2036,
    "h": 283.4
  },
  "luminance": 0.10215
}

Semantic roles & 50–950 ramp

primary
#5841CC
secondary
#C9D396
accent
#E147C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5841CC

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

Preview Lab → · Contrast checker → · Palette generator →

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