#5871E4#5871E4

#5871E4 is a mid, vivid blue. Relative luminance 0.195; OKLCH L 58.9% C 0.176 H 270.9°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5871E4
RGBrgb(88, 113, 228)
HSLhsl(229, 72%, 62%)
HSVhsv(229, 61%, 89%)
CMYKcmyk(61.4%, 50.4%, 0%, 10.6%)
CIE-LABlab(51.25, 25.85, -61.37)
CIE-LCHlch(51.25, 66.59, 292.84°)
OKLaboklab(58.94% 0.0027 -0.1758)
OKLCHoklch(58.94% 0.176 270.9)
XYZxyz(23.9285, 19.4844, 75.8836)
Luminance0.1949 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871E4 #E4CB58
analogous
#58B7E4 #5871E4 #8558E4
triadic
#5871E4 #E45871 #71E458
tetradic
#5871E4 #E458B7 #E4CB58 #58E485
square
#5871E4 #E458B7 #E4CB58 #58E485
split-complementary
#5871E4 #E48558 #B7E458
monochromatic
#1B34A7 #2344DB #5871E4 #8D9EED #C1CBF5

Accessibility & contrast

On white

4.29
#5871E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#5871E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871E4
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871E4#FFFFFF#000000##000000
##5871E41.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3081E8
Deuteranopia (green-blind)
#0474E2
Tritanopia (blue-blind)
#008CA0
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5871e4;
/* rgb */ color: rgb(88, 113, 228);
/* oklch */ color: oklch(58.9% 0.176 270.9);
Tailwind
colors: {
  custom: {
    50: '#9499ed',
    500: '#5871e4',
    950: '#000000',
  },
}
SCSS
$custom: #5871e4;
$custom-light: #9499ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5871e4",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 228
  },
  "hsl": {
    "h": 229.286,
    "s": 72.165,
    "l": 61.961
  },
  "oklch": {
    "l": 0.58943,
    "c": 0.17585,
    "h": 270.9
  },
  "luminance": 0.19486
}

Semantic roles & 50–950 ramp

primary
#5871E4
secondary
#E6DCB2
accent
#B111D4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5871E4

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

Preview Lab → · Contrast checker → · Palette generator →

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