#5871F0#5871F0

#5871F0 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.8% C 0.192 H 271.1°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#5871F0
RGBrgb(88, 113, 240)
HSLhsl(230, 84%, 64%)
HSVhsv(230, 63%, 94%)
CMYKcmyk(63.3%, 52.9%, 0%, 5.9%)
CIE-LABlab(52.03, 29.88, -66.83)
CIE-LCHlch(52.03, 73.20, 294.09°)
OKLaboklab(59.79% 0.0036 -0.1919)
OKLCHoklch(59.79% 0.192 271.1)
XYZxyz(25.6525, 20.1740, 84.9633)
Luminance0.2018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871F0 #F0D758
analogous
#58BDF0 #5871F0 #8B58F0
triadic
#5871F0 #F05871 #71F058
tetradic
#5871F0 #F058BD #F0D758 #58F08B
square
#5871F0 #F058BD #F0D758 #58F08B
split-complementary
#5871F0 #F08B58 #BDF058
monochromatic
#112DBD #2041EB #5871F0 #90A1F5 #C8D0FA

Accessibility & contrast

On white

4.17
#5871F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#5871F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871F0
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871F0#FFFFFF#000000##000000
##5871F01.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A83F4
Deuteranopia (green-blind)
#0076ED
Tritanopia (blue-blind)
#008FA6
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5871f0;
/* rgb */ color: rgb(88, 113, 240);
/* oklch */ color: oklch(59.8% 0.192 271.1);
Tailwind
colors: {
  custom: {
    50: '#9699f6',
    500: '#5871f0',
    950: '#000000',
  },
}
SCSS
$custom: #5871f0;
$custom-light: #9699f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5871f0",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 240
  },
  "hsl": {
    "h": 230.132,
    "s": 83.516,
    "l": 64.314
  },
  "oklch": {
    "l": 0.59785,
    "c": 0.19191,
    "h": 271.1
  },
  "luminance": 0.20176
}

Semantic roles & 50–950 ramp

primary
#5871F0
secondary
#ECE4B8
accent
#BC06E0
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0D17
muted
#7E7E85

Preview Lab

Preview with #5871F0

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

Preview Lab → · Contrast checker → · Palette generator →

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