#5871BC#5871BC

#5871BC is a mid, vivid blue. Relative luminance 0.175; OKLCH L 56.4% C 0.120 H 268.5°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#5871BC
RGBrgb(88, 113, 188)
HSLhsl(225, 43%, 54%)
HSVhsv(225, 53%, 74%)
CMYKcmyk(53.2%, 39.9%, 0%, 26.3%)
CIE-LABlab(48.90, 12.62, -42.35)
CIE-LCHlch(48.90, 44.19, 286.60°)
OKLaboklab(56.39% -0.0032 -0.12)
OKLCHoklch(56.39% 0.12 268.5)
XYZxyz(19.0037, 17.5145, 49.9464)
Luminance0.1752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871BC #BCA358
analogous
#58A3BC #5871BC #7158BC
triadic
#5871BC #BC5871 #71BC58
tetradic
#5871BC #BC58A3 #BCA358 #58BC71
square
#5871BC #BC58A3 #BCA358 #58BC71
split-complementary
#5871BC #BC7158 #A3BC58
monochromatic
#2C3C6E #3E5499 #5871BC #8496CE #AFBBDF

Accessibility & contrast

On white

4.66
#5871BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#5871BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5871BC
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871BC#FFFFFF#000000##FFFFFF
##5871BC1.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5379BF
Deuteranopia (green-blind)
#4770BA
Tritanopia (blue-blind)
#27818D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5871bc;
/* rgb */ color: rgb(88, 113, 188);
/* oklch */ color: oklch(56.4% 0.120 268.5);
Tailwind
colors: {
  custom: {
    50: '#8e99d0',
    500: '#5871bc',
    950: '#000000',
  },
}
SCSS
$custom: #5871bc;
$custom-light: #8e99d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5871bc",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 188
  },
  "hsl": {
    "h": 225,
    "s": 42.735,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56394,
    "c": 0.12,
    "h": 268.5
  },
  "luminance": 0.17516
}

Semantic roles & 50–950 ramp

primary
#5871BC
secondary
#CDC3A3
accent
#B355D3
background
#F9F9FC
surface
#F1F2F9
border
#CBCCD2
text
#0D0D14
muted
#7E7E82

Preview Lab

Preview with #5871BC

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

Preview Lab → · Contrast checker → · Palette generator →

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