#5851CC#5851CC

#5851CC is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.3% C 0.184 H 280.2°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#5851CC
RGBrgb(88, 81, 204)
HSLhsl(243, 55%, 56%)
HSVhsv(243, 60%, 80%)
CMYKcmyk(56.9%, 60.3%, 0%, 20%)
CIE-LABlab(41.72, 37.62, -63.13)
CIE-LCHlch(41.72, 73.48, 300.79°)
OKLaboklab(51.3% 0.0328 -0.1813)
OKLCHoklch(51.3% 0.184 280.2)
XYZxyz(17.8626, 12.3180, 58.5514)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5851CC #C5CC51
analogous
#5187CC #5851CC #9551CC
triadic
#5851CC #CC5851 #51CC58
tetradic
#5851CC #CC5187 #C5CC51 #51CC95
square
#5851CC #CC5187 #C5CC51 #51CC95
split-complementary
#5851CC #CC9551 #87CC51
monochromatic
#2A257E #3A33AD #5851CC #8580DA #B3B0E8

Accessibility & contrast

On white

6.06
#5851CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5851CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5851CC
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5851CC#FFFFFF#000000##FFFFFF
##5851CC1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#005ECA
Tritanopia (blue-blind)
#166F87
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5851cc;
/* rgb */ color: rgb(88, 81, 204);
/* oklch */ color: oklch(51.3% 0.184 280.2);
Tailwind
colors: {
  custom: {
    50: '#9282dc',
    500: '#5851cc',
    950: '#000000',
  },
}
SCSS
$custom: #5851cc;
$custom-light: #9282dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5851cc",
  "rgb": {
    "r": 88,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 243.415,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51303,
    "c": 0.18422,
    "h": 280.2
  },
  "luminance": 0.12319
}

Semantic roles & 50–950 ramp

primary
#5851CC
secondary
#D3D6A3
accent
#DE4AD6
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5851CC

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

Preview Lab → · Contrast checker → · Palette generator →

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