#5871DA#5871DA

#5871DA is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.3% C 0.162 H 270.6°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#5871DA
RGBrgb(88, 113, 218)
HSLhsl(228, 64%, 60%)
HSVhsv(228, 60%, 85%)
CMYKcmyk(59.6%, 48.2%, 0%, 14.5%)
CIE-LABlab(50.62, 22.50, -56.74)
CIE-LCHlch(50.62, 61.04, 291.63°)
OKLaboklab(58.27% 0.0017 -0.1622)
OKLCHoklch(58.27% 0.162 270.6)
XYZxyz(22.5803, 18.9451, 68.7829)
Luminance0.1895 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871DA #DAC158
analogous
#58B2DA #5871DA #8058DA
triadic
#5871DA #DA5871 #71DA58
tetradic
#5871DA #DA58B2 #DAC158 #58DA80
square
#5871DA #DA58B2 #DAC158 #58DA80
split-complementary
#5871DA #DA8058 #B2DA58
monochromatic
#213896 #2C4AC8 #5871DA #8A9CE5 #BCC6F0

Accessibility & contrast

On white

4.38
#5871DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#5871DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871DA
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871DA#FFFFFF#000000##000000
##5871DA1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C7FDE
Deuteranopia (green-blind)
#2573D8
Tritanopia (blue-blind)
#00899B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5871da;
/* rgb */ color: rgb(88, 113, 218);
/* oklch */ color: oklch(58.3% 0.162 270.6);
Tailwind
colors: {
  custom: {
    50: '#9299e6',
    500: '#5871da',
    950: '#000000',
  },
}
SCSS
$custom: #5871da;
$custom-light: #9299e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5871da",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 218
  },
  "hsl": {
    "h": 228.462,
    "s": 63.725,
    "l": 60
  },
  "oklch": {
    "l": 0.58268,
    "c": 0.16221,
    "h": 270.6
  },
  "luminance": 0.18947
}

Semantic roles & 50–950 ramp

primary
#5871DA
secondary
#E0D6AE
accent
#C741E7
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5871DA

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

Preview Lab → · Contrast checker → · Palette generator →

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