#5871BE#5871BE

#5871BE is a mid, vivid blue. Relative luminance 0.176; OKLCH L 56.5% C 0.123 H 268.7°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#5871BE
RGBrgb(88, 113, 190)
HSLhsl(225, 44%, 55%)
HSVhsv(225, 54%, 75%)
CMYKcmyk(53.7%, 40.5%, 0%, 25.5%)
CIE-LABlab(49.01, 13.27, -43.33)
CIE-LCHlch(49.01, 45.32, 287.03°)
OKLaboklab(56.51% -0.0028 -0.1228)
OKLCHoklch(56.51% 0.123 268.7)
XYZxyz(19.2208, 17.6013, 51.0898)
Luminance0.1760 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871BE #BEA558
analogous
#58A4BE #5871BE #7258BE
triadic
#5871BE #BE5871 #71BE58
tetradic
#5871BE #BE58A4 #BEA558 #58BE72
square
#5871BE #BE58A4 #BEA558 #58BE72
split-complementary
#5871BE #BE7258 #A4BE58
monochromatic
#2C3C70 #3D549C #5871BE #8496CF #B0BCE0

Accessibility & contrast

On white

4.65
#5871BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#5871BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5871BE
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871BE#FFFFFF#000000##FFFFFF
##5871BE1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5179C1
Deuteranopia (green-blind)
#4670BC
Tritanopia (blue-blind)
#24828E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5871be;
/* rgb */ color: rgb(88, 113, 190);
/* oklch */ color: oklch(56.5% 0.123 268.7);
Tailwind
colors: {
  custom: {
    50: '#8e99d2',
    500: '#5871be',
    950: '#000000',
  },
}
SCSS
$custom: #5871be;
$custom-light: #8e99d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5871be",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 190
  },
  "hsl": {
    "h": 225.294,
    "s": 43.966,
    "l": 54.51
  },
  "oklch": {
    "l": 0.56512,
    "c": 0.12287,
    "h": 268.7
  },
  "luminance": 0.17603
}

Semantic roles & 50–950 ramp

primary
#5871BE
secondary
#CEC4A3
accent
#B454D4
background
#F9F9FC
surface
#F1F2F9
border
#CBCCD2
text
#0D0D14
muted
#7E7E82

Preview Lab

Preview with #5871BE

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

Preview Lab → · Contrast checker → · Palette generator →

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