#5871AF#5871AF

#5871AF is a mid, moderate blue. Relative luminance 0.170; OKLCH L 55.7% C 0.101 H 266.5°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5871AF
RGBrgb(88, 113, 175)
HSLhsl(223, 35%, 52%)
HSVhsv(223, 50%, 69%)
CMYKcmyk(49.7%, 35.4%, 0%, 31.4%)
CIE-LABlab(48.23, 8.47, -35.87)
CIE-LCHlch(48.23, 36.85, 283.29°)
OKLaboklab(55.66% -0.0062 -0.1011)
OKLCHoklch(55.66% 0.101 266.5)
XYZxyz(17.6650, 16.9790, 42.8956)
Luminance0.1698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871AF #AF9658
analogous
#589DAF #5871AF #6B58AF
triadic
#5871AF #AF5871 #71AF58
tetradic
#5871AF #AF589D #AF9658 #58AF6B
square
#5871AF #AF589D #AF9658 #58AF6B
split-complementary
#5871AF #AF6B58 #9DAF58
monochromatic
#2E3C5F #415688 #5871AF #8194C3 #ABB7D7

Accessibility & contrast

On white

4.78
#5871AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#5871AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5871AF
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871AF#FFFFFF#000000##FFFFFF
##5871AF1.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5977B2
Deuteranopia (green-blind)
#506FAE
Tritanopia (blue-blind)
#337E88
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5871af;
/* rgb */ color: rgb(88, 113, 175);
/* oklch */ color: oklch(55.7% 0.101 266.5);
Tailwind
colors: {
  custom: {
    50: '#8c99c7',
    500: '#5871af',
    950: '#000000',
  },
}
SCSS
$custom: #5871af;
$custom-light: #8c99c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5871af",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 175
  },
  "hsl": {
    "h": 222.759,
    "s": 35.223,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5566,
    "c": 0.10126,
    "h": 266.5
  },
  "luminance": 0.1698
}

Semantic roles & 50–950 ramp

primary
#5871AF
secondary
#C5BA9E
accent
#AB5DCB
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0D13
muted
#7D7E82

Preview Lab

Preview with #5871AF

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

Preview Lab → · Contrast checker → · Palette generator →

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