#5871E8#5871E8

#5871E8 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.2% C 0.181 H 271.0°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#5871E8
RGBrgb(88, 113, 232)
HSLhsl(230, 76%, 63%)
HSVhsv(230, 62%, 91%)
CMYKcmyk(62.1%, 51.3%, 0%, 9%)
CIE-LABlab(51.51, 27.19, -63.20)
CIE-LCHlch(51.51, 68.80, 293.28°)
OKLaboklab(59.22% 0.0031 -0.1812)
OKLCHoklch(59.22% 0.181 271)
XYZxyz(24.4902, 19.7091, 78.8419)
Luminance0.1971 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871E8 #E8CF58
analogous
#58B9E8 #5871E8 #8758E8
triadic
#5871E8 #E85871 #71E858
tetradic
#5871E8 #E858B9 #E8CF58 #58E887
square
#5871E8 #E858B9 #E8CF58 #58E887
split-complementary
#5871E8 #E88758 #B9E858
monochromatic
#1832AE #2243E1 #5871E8 #8E9FEF #C4CCF7

Accessibility & contrast

On white

4.25
#5871E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#5871E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871E8
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871E8#FFFFFF#000000##000000
##5871E81.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A81EC
Deuteranopia (green-blind)
#0075E6
Tritanopia (blue-blind)
#008DA2
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5871e8;
/* rgb */ color: rgb(88, 113, 232);
/* oklch */ color: oklch(59.2% 0.181 271.0);
Tailwind
colors: {
  custom: {
    50: '#9499f0',
    500: '#5871e8',
    950: '#000000',
  },
}
SCSS
$custom: #5871e8;
$custom-light: #9499f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5871e8",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 232
  },
  "hsl": {
    "h": 229.583,
    "s": 75.789,
    "l": 62.745
  },
  "oklch": {
    "l": 0.5922,
    "c": 0.18125,
    "h": 271
  },
  "luminance": 0.19711
}

Semantic roles & 50–950 ramp

primary
#5871E8
secondary
#E8DFB4
accent
#B50ED8
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5871E8

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

Preview Lab → · Contrast checker → · Palette generator →

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