#5851BD#5851BD

#5851BD is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.2% C 0.164 H 281.6°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#5851BD
RGBrgb(88, 81, 189)
HSLhsl(244, 45%, 53%)
HSVhsv(244, 57%, 74%)
CMYKcmyk(53.4%, 57.1%, 0%, 25.9%)
CIE-LABlab(40.63, 32.85, -56.18)
CIE-LCHlch(40.63, 65.08, 300.32°)
OKLaboklab(50.15% 0.0331 -0.1609)
OKLCHoklch(50.15% 0.164 281.6)
XYZxyz(16.1494, 11.6327, 49.5286)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5851BD #B6BD51
analogous
#5180BD #5851BD #8E51BD
triadic
#5851BD #BD5851 #51BD58
tetradic
#5851BD #BD5180 #B6BD51 #51BD8E
square
#5851BD #BD5180 #B6BD51 #51BD8E
split-complementary
#5851BD #BD8E51 #80BD51
monochromatic
#2D296B #403997 #5851BD #837DCE #ADAADF

Accessibility & contrast

On white

6.31
#5851BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#5851BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5851BD
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5851BD#FFFFFF#000000##FFFFFF
##5851BD1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C1
Deuteranopia (green-blind)
#005CBB
Tritanopia (blue-blind)
#2C6A7F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5851bd;
/* rgb */ color: rgb(88, 81, 189);
/* oklch */ color: oklch(50.2% 0.164 281.6);
Tailwind
colors: {
  custom: {
    50: '#8f82d2',
    500: '#5851bd',
    950: '#000000',
  },
}
SCSS
$custom: #5851bd;
$custom-light: #8f82d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5851bd",
  "rgb": {
    "r": 88,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 243.889,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50153,
    "c": 0.16422,
    "h": 281.6
  },
  "luminance": 0.11634
}

Semantic roles & 50–950 ramp

primary
#5851BD
secondary
#C9CC9E
accent
#D553CC
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5851BD

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

Preview Lab → · Contrast checker → · Palette generator →

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