#5871CD#5871CD

#5871CD is a mid, vivid blue. Relative luminance 0.183; OKLCH L 57.4% C 0.144 H 269.9°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#5871CD
RGBrgb(88, 113, 205)
HSLhsl(227, 54%, 57%)
HSVhsv(227, 57%, 80%)
CMYKcmyk(57.1%, 44.9%, 0%, 19.6%)
CIE-LABlab(49.85, 18.18, -50.60)
CIE-LCHlch(49.85, 53.76, 289.77°)
OKLaboklab(57.43% -0.0001 -0.1441)
OKLCHoklch(57.43% 0.144 269.9)
XYZxyz(20.9454, 18.2911, 60.1726)
Luminance0.1829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871CD #CDB458
analogous
#58ACCD #5871CD #7958CD
triadic
#5871CD #CD5871 #71CD58
tetradic
#5871CD #CD58AC #CDB458 #58CD79
square
#5871CD #CD58AC #CDB458 #58CD79
split-complementary
#5871CD #CD7958 #ACCD58
monochromatic
#273B83 #3550B2 #5871CD #8799DB #B6C1E9

Accessibility & contrast

On white

4.51
#5871CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#5871CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871CD
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871CD#FFFFFF#000000##000000
##5871CD1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#477CD0
Deuteranopia (green-blind)
#3772CB
Tritanopia (blue-blind)
#028595
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5871cd;
/* rgb */ color: rgb(88, 113, 205);
/* oklch */ color: oklch(57.4% 0.144 269.9);
Tailwind
colors: {
  custom: {
    50: '#9099dd',
    500: '#5871cd',
    950: '#000000',
  },
}
SCSS
$custom: #5871cd;
$custom-light: #9099dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5871cd",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 205
  },
  "hsl": {
    "h": 227.179,
    "s": 53.917,
    "l": 57.451
  },
  "oklch": {
    "l": 0.57427,
    "c": 0.14414,
    "h": 269.9
  },
  "luminance": 0.18293
}

Semantic roles & 50–950 ramp

primary
#5871CD
secondary
#D8CEA9
accent
#BE4BDD
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5871CD

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

Preview Lab → · Contrast checker → · Palette generator →

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