#5871B8#5871B8

#5871B8 is a mid, moderate blue. Relative luminance 0.173; OKLCH L 56.2% C 0.114 H 268.0°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#5871B8
RGBrgb(88, 113, 184)
HSLhsl(224, 40%, 53%)
HSVhsv(224, 52%, 72%)
CMYKcmyk(52.2%, 38.6%, 0%, 27.8%)
CIE-LABlab(48.69, 11.33, -40.37)
CIE-LCHlch(48.69, 41.93, 285.68°)
OKLaboklab(56.16% -0.0041 -0.1142)
OKLCHoklch(56.16% 0.114 268)
XYZxyz(18.5785, 17.3444, 47.7069)
Luminance0.1735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871B8 #B89F58
analogous
#58A1B8 #5871B8 #6F58B8
triadic
#5871B8 #B85871 #71B858
tetradic
#5871B8 #B858A1 #B89F58 #58B86F
square
#5871B8 #B858A1 #B89F58 #58B86F
split-complementary
#5871B8 #B86F58 #A1B858
monochromatic
#2D3C69 #3F5594 #5871B8 #8396CA #AEBADD

Accessibility & contrast

On white

4.70
#5871B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#5871B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5871B8
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871B8#FFFFFF#000000##FFFFFF
##5871B81.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5578BB
Deuteranopia (green-blind)
#4A70B6
Tritanopia (blue-blind)
#2B808C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5871b8;
/* rgb */ color: rgb(88, 113, 184);
/* oklch */ color: oklch(56.2% 0.114 268.0);
Tailwind
colors: {
  custom: {
    50: '#8d99cd',
    500: '#5871b8',
    950: '#000000',
  },
}
SCSS
$custom: #5871b8;
$custom-light: #8d99cd;
$custom-dark: #000000;
JSON
{
  "hex": "#5871b8",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 184
  },
  "hsl": {
    "h": 224.375,
    "s": 40.336,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56163,
    "c": 0.11425,
    "h": 268
  },
  "luminance": 0.17346
}

Semantic roles & 50–950 ramp

primary
#5871B8
secondary
#CBC0A1
accent
#B158D0
background
#F9F9FC
surface
#F1F2F9
border
#CBCCD2
text
#0D0D13
muted
#7E7E82

Preview Lab

Preview with #5871B8

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

Preview Lab → · Contrast checker → · Palette generator →

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