#5851BF#5851BF

#5851BF is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.3% C 0.167 H 281.4°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#5851BF
RGBrgb(88, 81, 191)
HSLhsl(244, 46%, 53%)
HSVhsv(244, 58%, 75%)
CMYKcmyk(53.9%, 57.6%, 0%, 25.1%)
CIE-LABlab(40.77, 33.49, -57.12)
CIE-LCHlch(40.77, 66.21, 300.38°)
OKLaboklab(50.3% 0.0331 -0.1636)
OKLCHoklch(50.3% 0.167 281.4)
XYZxyz(16.3680, 11.7202, 50.6798)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5851BF #B8BF51
analogous
#5181BF #5851BF #8F51BF
triadic
#5851BF #BF5851 #51BF58
tetradic
#5851BF #BF5181 #B8BF51 #51BF8F
square
#5851BF #BF5181 #B8BF51 #51BF8F
split-complementary
#5851BF #BF8F51 #81BF51
monochromatic
#2D286D #3F399A #5851BF #837ECF #AEAAE0

Accessibility & contrast

On white

6.28
#5851BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5851BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5851BF
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5851BF#FFFFFF#000000##FFFFFF
##5851BF1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C3
Deuteranopia (green-blind)
#005CBD
Tritanopia (blue-blind)
#2A6B80
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5851bf;
/* rgb */ color: rgb(88, 81, 191);
/* oklch */ color: oklch(50.3% 0.167 281.4);
Tailwind
colors: {
  custom: {
    50: '#9082d3',
    500: '#5851bf',
    950: '#000000',
  },
}
SCSS
$custom: #5851bf;
$custom-light: #9082d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5851bf",
  "rgb": {
    "r": 88,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 243.818,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50303,
    "c": 0.16693,
    "h": 281.4
  },
  "luminance": 0.11721
}

Semantic roles & 50–950 ramp

primary
#5851BF
secondary
#CBCE9E
accent
#D652CD
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5851BF

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

Preview Lab → · Contrast checker → · Palette generator →

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