#5851CB#5851CB

#5851CB is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.2% C 0.183 H 280.3°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#5851CB
RGBrgb(88, 81, 203)
HSLhsl(243, 54%, 56%)
HSVhsv(243, 60%, 80%)
CMYKcmyk(56.7%, 60.1%, 0%, 20.4%)
CIE-LABlab(41.64, 37.30, -62.67)
CIE-LCHlch(41.64, 72.93, 300.76°)
OKLaboklab(51.22% 0.0328 -0.1799)
OKLCHoklch(51.22% 0.183 280.3)
XYZxyz(17.7430, 12.2702, 57.9217)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5851CB #C4CB51
analogous
#5187CB #5851CB #9551CB
triadic
#5851CB #CB5851 #51CB58
tetradic
#5851CB #CB5187 #C4CB51 #51CB95
square
#5851CB #CB5187 #C4CB51 #51CB95
split-complementary
#5851CB #CB9551 #87CB51
monochromatic
#2A257C #3A33AC #5851CB #8580D9 #B2AFE7

Accessibility & contrast

On white

6.08
#5851CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5851CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5851CB
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5851CB#FFFFFF#000000##FFFFFF
##5851CB1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#005EC9
Tritanopia (blue-blind)
#196E86
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5851cb;
/* rgb */ color: rgb(88, 81, 203);
/* oklch */ color: oklch(51.2% 0.183 280.3);
Tailwind
colors: {
  custom: {
    50: '#9182dc',
    500: '#5851cb',
    950: '#000000',
  },
}
SCSS
$custom: #5851cb;
$custom-light: #9182dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5851cb",
  "rgb": {
    "r": 88,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 243.443,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51224,
    "c": 0.18291,
    "h": 280.3
  },
  "luminance": 0.12271
}

Semantic roles & 50–950 ramp

primary
#5851CB
secondary
#D2D5A3
accent
#DD4AD5
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5851CB

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

Preview Lab → · Contrast checker → · Palette generator →

#5851CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva