#5871EB#5871EB

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

Color values

HEX#5871EB
RGBrgb(88, 113, 235)
HSLhsl(230, 79%, 63%)
HSVhsv(230, 63%, 92%)
CMYKcmyk(62.6%, 51.9%, 0%, 7.8%)
CIE-LABlab(51.70, 28.20, -64.57)
CIE-LCHlch(51.70, 70.46, 293.59°)
OKLaboklab(59.43% 0.0033 -0.1852)
OKLCHoklch(59.43% 0.185 271)
XYZxyz(24.9200, 19.8810, 81.1053)
Luminance0.1988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871EB #EBD258
analogous
#58BAEB #5871EB #8858EB
triadic
#5871EB #EB5871 #71EB58
tetradic
#5871EB #EB58BA #EBD258 #58EB88
square
#5871EB #EB58BA #EBD258 #58EB88
split-complementary
#5871EB #EB8858 #BAEB58
monochromatic
#1530B3 #2143E4 #5871EB #8F9FF2 #C5CEF8

Accessibility & contrast

On white

4.22
#5871EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#5871EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871EB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871EB#FFFFFF#000000##000000
##5871EB1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2582EF
Deuteranopia (green-blind)
#0075E8
Tritanopia (blue-blind)
#008EA3
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5871eb;
/* rgb */ color: rgb(88, 113, 235);
/* oklch */ color: oklch(59.4% 0.185 271.0);
Tailwind
colors: {
  custom: {
    50: '#9599f2',
    500: '#5871eb',
    950: '#000000',
  },
}
SCSS
$custom: #5871eb;
$custom-light: #9599f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5871eb",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 229.796,
    "s": 78.61,
    "l": 63.333
  },
  "oklch": {
    "l": 0.5943,
    "c": 0.18527,
    "h": 271
  },
  "luminance": 0.19883
}

Semantic roles & 50–950 ramp

primary
#5871EB
secondary
#EAE1B5
accent
#B70BDB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5871EB

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

Preview Lab → · Contrast checker → · Palette generator →

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