#5871EA#5871EA

#5871EA is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.4% C 0.184 H 271.0°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#5871EA
RGBrgb(88, 113, 234)
HSLhsl(230, 78%, 63%)
HSVhsv(230, 62%, 92%)
CMYKcmyk(62.4%, 51.7%, 0%, 8.2%)
CIE-LABlab(51.64, 27.86, -64.12)
CIE-LCHlch(51.64, 69.91, 293.49°)
OKLaboklab(59.36% 0.0032 -0.1839)
OKLCHoklch(59.36% 0.184 271)
XYZxyz(24.7759, 19.8233, 80.3466)
Luminance0.1983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871EA #EAD158
analogous
#58BAEA #5871EA #8858EA
triadic
#5871EA #EA5871 #71EA58
tetradic
#5871EA #EA58BA #EAD158 #58EA88
square
#5871EA #EA58BA #EAD158 #58EA88
split-complementary
#5871EA #EA8858 #BAEA58
monochromatic
#1631B1 #2243E3 #5871EA #8E9FF1 #C5CDF8

Accessibility & contrast

On white

4.23
#5871EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#5871EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871EA
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871EA#FFFFFF#000000##000000
##5871EA1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2782EE
Deuteranopia (green-blind)
#0075E8
Tritanopia (blue-blind)
#008DA3
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5871ea;
/* rgb */ color: rgb(88, 113, 234);
/* oklch */ color: oklch(59.4% 0.184 271.0);
Tailwind
colors: {
  custom: {
    50: '#9599f1',
    500: '#5871ea',
    950: '#000000',
  },
}
SCSS
$custom: #5871ea;
$custom-light: #9599f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5871ea",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 229.726,
    "s": 77.66,
    "l": 63.137
  },
  "oklch": {
    "l": 0.5936,
    "c": 0.18393,
    "h": 271
  },
  "luminance": 0.19825
}

Semantic roles & 50–950 ramp

primary
#5871EA
secondary
#E9E0B5
accent
#B70CDA
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5871EA

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

Preview Lab → · Contrast checker → · Palette generator →

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