#5871CE#5871CE

#5871CE is a mid, vivid blue. Relative luminance 0.183; OKLCH L 57.5% C 0.146 H 270.0°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#5871CE
RGBrgb(88, 113, 206)
HSLhsl(227, 55%, 58%)
HSVhsv(227, 57%, 81%)
CMYKcmyk(57.3%, 45.1%, 0%, 19.2%)
CIE-LABlab(49.91, 18.51, -51.07)
CIE-LCHlch(49.91, 54.33, 289.93°)
OKLaboklab(57.49% 0 -0.1456)
OKLCHoklch(57.49% 0.146 270)
XYZxyz(21.0665, 18.3396, 60.8103)
Luminance0.1834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871CE #CEB558
analogous
#58ACCE #5871CE #7A58CE
triadic
#5871CE #CE5871 #71CE58
tetradic
#5871CE #CE58AC #CEB558 #58CE7A
square
#5871CE #CE58AC #CEB558 #58CE7A
split-complementary
#5871CE #CE7A58 #ACCE58
monochromatic
#273B85 #3550B4 #5871CE #8799DC #B7C1EA

Accessibility & contrast

On white

4.50
#5871CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#5871CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871CE
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871CE#FFFFFF#000000##000000
##5871CE1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#477CD1
Deuteranopia (green-blind)
#3672CC
Tritanopia (blue-blind)
#008695
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5871ce;
/* rgb */ color: rgb(88, 113, 206);
/* oklch */ color: oklch(57.5% 0.146 270.0);
Tailwind
colors: {
  custom: {
    50: '#9099dd',
    500: '#5871ce',
    950: '#000000',
  },
}
SCSS
$custom: #5871ce;
$custom-light: #9099dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5871ce",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 206
  },
  "hsl": {
    "h": 227.288,
    "s": 54.63,
    "l": 57.647
  },
  "oklch": {
    "l": 0.5749,
    "c": 0.14555,
    "h": 270
  },
  "luminance": 0.18341
}

Semantic roles & 50–950 ramp

primary
#5871CE
secondary
#D9CFA9
accent
#BF4ADE
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5871CE

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

Preview Lab → · Contrast checker → · Palette generator →

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