#5871DC#5871DC

#5871DC is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.4% C 0.165 H 270.7°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5871DC
RGBrgb(88, 113, 220)
HSLhsl(229, 65%, 60%)
HSVhsv(229, 60%, 86%)
CMYKcmyk(60%, 48.6%, 0%, 13.7%)
CIE-LABlab(50.75, 23.17, -57.67)
CIE-LCHlch(50.75, 62.15, 291.89°)
OKLaboklab(58.4% 0.0019 -0.165)
OKLCHoklch(58.4% 0.165 270.7)
XYZxyz(22.8436, 19.0504, 70.1696)
Luminance0.1905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871DC #DCC358
analogous
#58B3DC #5871DC #8158DC
triadic
#5871DC #DC5871 #71DC58
tetradic
#5871DC #DC58B3 #DCC358 #58DC81
square
#5871DC #DC58B3 #DCC358 #58DC81
split-complementary
#5871DC #DC8158 #B3DC58
monochromatic
#203799 #2B49CC #5871DC #8B9CE7 #BDC7F1

Accessibility & contrast

On white

4.37
#5871DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#5871DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871DC
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871DC#FFFFFF#000000##000000
##5871DC1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A7FE0
Deuteranopia (green-blind)
#2073DA
Tritanopia (blue-blind)
#00899C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5871dc;
/* rgb */ color: rgb(88, 113, 220);
/* oklch */ color: oklch(58.4% 0.165 270.7);
Tailwind
colors: {
  custom: {
    50: '#9299e7',
    500: '#5871dc',
    950: '#000000',
  },
}
SCSS
$custom: #5871dc;
$custom-light: #9299e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5871dc",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 228.636,
    "s": 65.347,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58401,
    "c": 0.16496,
    "h": 270.7
  },
  "luminance": 0.19052
}

Semantic roles & 50–950 ramp

primary
#5871DC
secondary
#E1D8AF
accent
#AB18CD
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5871DC

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

Preview Lab → · Contrast checker → · Palette generator →

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