#5871DE#5871DE

#5871DE is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.5% C 0.168 H 270.7°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#5871DE
RGBrgb(88, 113, 222)
HSLhsl(229, 67%, 61%)
HSVhsv(229, 60%, 87%)
CMYKcmyk(60.4%, 49.1%, 0%, 12.9%)
CIE-LABlab(50.87, 23.84, -58.60)
CIE-LCHlch(50.87, 63.27, 292.14°)
OKLaboklab(58.54% 0.0021 -0.1677)
OKLCHoklch(58.54% 0.168 270.7)
XYZxyz(23.1100, 19.1570, 71.5729)
Luminance0.1916 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871DE #DEC558
analogous
#58B4DE #5871DE #8258DE
triadic
#5871DE #DE5871 #71DE58
tetradic
#5871DE #DE58B4 #DEC558 #58DE82
square
#5871DE #DE58B4 #DEC558 #58DE82
split-complementary
#5871DE #DE8258 #B4DE58
monochromatic
#1F369D #2948D0 #5871DE #8B9CE8 #BEC8F2

Accessibility & contrast

On white

4.35
#5871DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#5871DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871DE
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871DE#FFFFFF#000000##000000
##5871DE1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#387FE2
Deuteranopia (green-blind)
#1C73DC
Tritanopia (blue-blind)
#008A9D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5871de;
/* rgb */ color: rgb(88, 113, 222);
/* oklch */ color: oklch(58.5% 0.168 270.7);
Tailwind
colors: {
  custom: {
    50: '#9399e9',
    500: '#5871de',
    950: '#000000',
  },
}
SCSS
$custom: #5871de;
$custom-light: #9399e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5871de",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 222
  },
  "hsl": {
    "h": 228.806,
    "s": 67,
    "l": 60.784
  },
  "oklch": {
    "l": 0.58535,
    "c": 0.16769,
    "h": 270.7
  },
  "luminance": 0.19159
}

Semantic roles & 50–950 ramp

primary
#5871DE
secondary
#E2D9B0
accent
#AD17CF
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5871DE

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

Preview Lab → · Contrast checker → · Palette generator →

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