#5871D9#5871D9

#5871D9 is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.2% C 0.161 H 270.5°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5871D9
RGBrgb(88, 113, 217)
HSLhsl(228, 63%, 60%)
HSVhsv(228, 59%, 85%)
CMYKcmyk(59.4%, 47.9%, 0%, 14.9%)
CIE-LABlab(50.56, 22.17, -56.27)
CIE-LCHlch(50.56, 60.48, 291.50°)
OKLaboklab(58.2% 0.0015 -0.1608)
OKLCHoklch(58.2% 0.161 270.5)
XYZxyz(22.4498, 18.8929, 68.0958)
Luminance0.1890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871D9 #D9C058
analogous
#58B2D9 #5871D9 #7F58D9
triadic
#5871D9 #D95871 #71D958
tetradic
#5871D9 #D958B2 #D9C058 #58D97F
square
#5871D9 #D958B2 #D9C058 #58D97F
split-complementary
#5871D9 #D97F58 #B2D958
monochromatic
#223895 #2D4BC7 #5871D9 #8A9BE4 #BCC6F0

Accessibility & contrast

On white

4.39
#5871D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#5871D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871D9
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871D9#FFFFFF#000000##000000
##5871D91.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D7EDD
Deuteranopia (green-blind)
#2673D7
Tritanopia (blue-blind)
#00899B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5871d9;
/* rgb */ color: rgb(88, 113, 217);
/* oklch */ color: oklch(58.2% 0.161 270.5);
Tailwind
colors: {
  custom: {
    50: '#9299e5',
    500: '#5871d9',
    950: '#000000',
  },
}
SCSS
$custom: #5871d9;
$custom-light: #9299e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5871d9",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 217
  },
  "hsl": {
    "h": 228.372,
    "s": 62.927,
    "l": 59.804
  },
  "oklch": {
    "l": 0.58202,
    "c": 0.16084,
    "h": 270.5
  },
  "luminance": 0.18895
}

Semantic roles & 50–950 ramp

primary
#5871D9
secondary
#DFD6AD
accent
#C642E6
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5871D9

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

Preview Lab → · Contrast checker → · Palette generator →

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