#5851BC#5851BC

#5851BC is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.1% C 0.163 H 281.7°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#5851BC
RGBrgb(88, 81, 188)
HSLhsl(244, 44%, 53%)
HSVhsv(244, 57%, 74%)
CMYKcmyk(53.2%, 56.9%, 0%, 26.3%)
CIE-LABlab(40.56, 32.54, -55.71)
CIE-LCHlch(40.56, 64.52, 300.29°)
OKLaboklab(50.08% 0.0331 -0.1595)
OKLCHoklch(50.08% 0.163 281.7)
XYZxyz(16.0412, 11.5895, 48.9589)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5851BC #B5BC51
analogous
#5180BC #5851BC #8D51BC
triadic
#5851BC #BC5851 #51BC58
tetradic
#5851BC #BC5180 #B5BC51 #51BC8D
square
#5851BC #BC5180 #B5BC51 #51BC8D
split-complementary
#5851BC #BC8D51 #80BC51
monochromatic
#2D296A #403A96 #5851BC #827DCD #ADA9DE

Accessibility & contrast

On white

6.33
#5851BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#5851BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5851BC
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5851BC#FFFFFF#000000##FFFFFF
##5851BC1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C0
Deuteranopia (green-blind)
#005CBA
Tritanopia (blue-blind)
#2D6A7E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5851bc;
/* rgb */ color: rgb(88, 81, 188);
/* oklch */ color: oklch(50.1% 0.163 281.7);
Tailwind
colors: {
  custom: {
    50: '#8f82d1',
    500: '#5851bc',
    950: '#000000',
  },
}
SCSS
$custom: #5851bc;
$custom-light: #8f82d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5851bc",
  "rgb": {
    "r": 88,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 243.925,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50079,
    "c": 0.16287,
    "h": 281.7
  },
  "luminance": 0.1159
}

Semantic roles & 50–950 ramp

primary
#5851BC
secondary
#C9CC9D
accent
#D454CC
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5851BC

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

Preview Lab → · Contrast checker → · Palette generator →

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