#5871EF#5871EF

#5871EF is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.7% C 0.191 H 271.1°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5871EF
RGBrgb(88, 113, 239)
HSLhsl(230, 83%, 64%)
HSVhsv(230, 63%, 94%)
CMYKcmyk(63.2%, 52.7%, 0%, 6.3%)
CIE-LABlab(51.97, 29.54, -66.38)
CIE-LCHlch(51.97, 72.66, 293.99°)
OKLaboklab(59.71% 0.0036 -0.1906)
OKLCHoklch(59.71% 0.191 271.1)
XYZxyz(25.5044, 20.1147, 84.1831)
Luminance0.2012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871EF #EFD658
analogous
#58BDEF #5871EF #8B58EF
triadic
#5871EF #EF5871 #71EF58
tetradic
#5871EF #EF58BD #EFD658 #58EF8B
square
#5871EF #EF58BD #EFD658 #58EF8B
split-complementary
#5871EF #EF8B58 #BDEF58
monochromatic
#122EBB #2042EA #5871EF #90A0F4 #C8D0FA

Accessibility & contrast

On white

4.18
#5871EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#5871EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871EF
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871EF#FFFFFF#000000##000000
##5871EF1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C83F3
Deuteranopia (green-blind)
#0075EC
Tritanopia (blue-blind)
#008FA5
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5871ef;
/* rgb */ color: rgb(88, 113, 239);
/* oklch */ color: oklch(59.7% 0.191 271.1);
Tailwind
colors: {
  custom: {
    50: '#9599f5',
    500: '#5871ef',
    950: '#000000',
  },
}
SCSS
$custom: #5871ef;
$custom-light: #9599f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5871ef",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 230.066,
    "s": 82.514,
    "l": 64.118
  },
  "oklch": {
    "l": 0.59713,
    "c": 0.19059,
    "h": 271.1
  },
  "luminance": 0.20117
}

Semantic roles & 50–950 ramp

primary
#5871EF
secondary
#ECE3B7
accent
#BB07DF
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0F0D17
muted
#7E7E85

Preview Lab

Preview with #5871EF

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

Preview Lab → · Contrast checker → · Palette generator →

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