#5871DD#5871DD

#5871DD is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.5% C 0.166 H 270.7°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#5871DD
RGBrgb(88, 113, 221)
HSLhsl(229, 66%, 61%)
HSVhsv(229, 60%, 87%)
CMYKcmyk(60.2%, 48.9%, 0%, 13.3%)
CIE-LABlab(50.81, 23.51, -58.14)
CIE-LCHlch(50.81, 62.71, 292.01°)
OKLaboklab(58.47% 0.002 -0.1663)
OKLCHoklch(58.47% 0.166 270.7)
XYZxyz(22.9764, 19.1035, 70.8691)
Luminance0.1910 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871DD #DDC458
analogous
#58B3DD #5871DD #8158DD
triadic
#5871DD #DD5871 #71DD58
tetradic
#5871DD #DD58B3 #DDC458 #58DD81
square
#5871DD #DD58B3 #DDC458 #58DD81
split-complementary
#5871DD #DD8158 #B3DD58
monochromatic
#20379B #2A49CE #5871DD #8B9CE7 #BEC7F2

Accessibility & contrast

On white

4.36
#5871DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#5871DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871DD
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871DD#FFFFFF#000000##000000
##5871DD1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#397FE1
Deuteranopia (green-blind)
#1E73DB
Tritanopia (blue-blind)
#008A9C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5871dd;
/* rgb */ color: rgb(88, 113, 221);
/* oklch */ color: oklch(58.5% 0.166 270.7);
Tailwind
colors: {
  custom: {
    50: '#9299e8',
    500: '#5871dd',
    950: '#000000',
  },
}
SCSS
$custom: #5871dd;
$custom-light: #9299e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5871dd",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 221
  },
  "hsl": {
    "h": 228.722,
    "s": 66.169,
    "l": 60.588
  },
  "oklch": {
    "l": 0.58468,
    "c": 0.16633,
    "h": 270.7
  },
  "luminance": 0.19105
}

Semantic roles & 50–950 ramp

primary
#5871DD
secondary
#E2D8AF
accent
#AC17CE
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5871DD

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

Preview Lab → · Contrast checker → · Palette generator →

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