#5871D2#5871D2

#5871D2 is a mid, vivid blue. Relative luminance 0.185; OKLCH L 57.7% C 0.151 H 270.2°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#5871D2
RGBrgb(88, 113, 210)
HSLhsl(228, 58%, 58%)
HSVhsv(228, 58%, 82%)
CMYKcmyk(58.1%, 46.2%, 0%, 17.6%)
CIE-LABlab(50.14, 19.84, -52.98)
CIE-LCHlch(50.14, 56.57, 290.53°)
OKLaboklab(57.75% 0.0006 -0.1511)
OKLCHoklch(57.75% 0.151 270.2)
XYZxyz(21.5586, 18.5364, 63.4021)
Luminance0.1854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871D2 #D2B958
analogous
#58AED2 #5871D2 #7C58D2
triadic
#5871D2 #D25871 #71D258
tetradic
#5871D2 #D258AE #D2B958 #58D27C
square
#5871D2 #D258AE #D2B958 #58D27C
split-complementary
#5871D2 #D27C58 #AED258
monochromatic
#253A8A #324EBB #5871D2 #889ADF #B8C3EC

Accessibility & contrast

On white

4.46
#5871D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#5871D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871D2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871D2#FFFFFF#000000##000000
##5871D21.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#437DD6
Deuteranopia (green-blind)
#3172D0
Tritanopia (blue-blind)
#008797
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5871d2;
/* rgb */ color: rgb(88, 113, 210);
/* oklch */ color: oklch(57.7% 0.151 270.2);
Tailwind
colors: {
  custom: {
    50: '#9199e0',
    500: '#5871d2',
    950: '#000000',
  },
}
SCSS
$custom: #5871d2;
$custom-light: #9199e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5871d2",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 210
  },
  "hsl": {
    "h": 227.705,
    "s": 57.547,
    "l": 58.431
  },
  "oklch": {
    "l": 0.57745,
    "c": 0.15114,
    "h": 270.2
  },
  "luminance": 0.18538
}

Semantic roles & 50–950 ramp

primary
#5871D2
secondary
#DBD1AB
accent
#C147E1
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0D15
muted
#7E7E83

Preview Lab

Preview with #5871D2

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

Preview Lab → · Contrast checker → · Palette generator →

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