#5871FF#5871FF

#5871FF is a mid, highly saturated blue. Relative luminance 0.211; OKLCH L 60.9% C 0.212 H 271.2°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5871FF
RGBrgb(88, 113, 255)
HSLhsl(231, 100%, 67%)
HSVhsv(231, 65%, 100%)
CMYKcmyk(65.5%, 55.7%, 0%, 0%)
CIE-LABlab(53.06, 34.91, -73.49)
CIE-LCHlch(53.06, 81.36, 295.41°)
OKLaboklab(60.88% 0.0043 -0.2115)
OKLCHoklch(60.88% 0.212 271.2)
XYZxyz(27.9735, 21.1024, 97.1873)
Luminance0.2110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871FF #FFE658
analogous
#58C5FF #5871FF #9358FF
triadic
#5871FF #FF5871 #71FF58
tetradic
#5871FF #FF58C5 #FFE658 #58FF93
square
#5871FF #FF58C5 #FFE658 #58FF93
split-complementary
#5871FF #FF9358 #C5FF58
monochromatic
#0021DD #1B3DFF #5871FF #95A5FF #D2D9FF

Accessibility & contrast

On white

4.02
#5871FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#5871FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871FF
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871FF#FFFFFF#000000##000000
##5871FF1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0086FF
Deuteranopia (green-blind)
#0077FC
Tritanopia (blue-blind)
#0093AD
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5871ff;
/* rgb */ color: rgb(88, 113, 255);
/* oklch */ color: oklch(60.9% 0.212 271.2);
Tailwind
colors: {
  custom: {
    50: '#9899ff',
    500: '#5871ff',
    950: '#000000',
  },
}
SCSS
$custom: #5871ff;
$custom-light: #9899ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5871ff",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 255
  },
  "hsl": {
    "h": 231.018,
    "s": 100,
    "l": 67.255
  },
  "oklch": {
    "l": 0.60881,
    "c": 0.21153,
    "h": 271.2
  },
  "luminance": 0.21105
}

Semantic roles & 50–950 ramp

primary
#5871FF
secondary
#F4ECBF
accent
#C300E6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0E18
muted
#7F7E86

Preview Lab

Preview with #5871FF

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

Preview Lab → · Contrast checker → · Palette generator →

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