#5871DB#5871DB

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

Color values

HEX#5871DB
RGBrgb(88, 113, 219)
HSLhsl(229, 65%, 60%)
HSVhsv(229, 60%, 86%)
CMYKcmyk(59.8%, 48.4%, 0%, 14.1%)
CIE-LABlab(50.68, 22.84, -57.21)
CIE-LCHlch(50.68, 61.60, 291.76°)
OKLaboklab(58.33% 0.0018 -0.1636)
OKLCHoklch(58.33% 0.164 270.6)
XYZxyz(22.7115, 18.9976, 69.4742)
Luminance0.1900 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871DB #DBC258
analogous
#58B2DB #5871DB #8158DB
triadic
#5871DB #DB5871 #71DB58
tetradic
#5871DB #DB58B2 #DBC258 #58DB81
square
#5871DB #DB58B2 #DBC258 #58DB81
split-complementary
#5871DB #DB8158 #B2DB58
monochromatic
#213798 #2C4ACA #5871DB #8A9CE6 #BDC7F1

Accessibility & contrast

On white

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

On black

4.80
#5871DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871DB
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871DB#FFFFFF#000000##000000
##5871DB1.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B7FDF
Deuteranopia (green-blind)
#2373D9
Tritanopia (blue-blind)
#00899B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5871db;
/* rgb */ color: rgb(88, 113, 219);
/* oklch */ color: oklch(58.3% 0.164 270.6);
Tailwind
colors: {
  custom: {
    50: '#9299e7',
    500: '#5871db',
    950: '#000000',
  },
}
SCSS
$custom: #5871db;
$custom-light: #9299e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5871db",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 219
  },
  "hsl": {
    "h": 228.55,
    "s": 64.532,
    "l": 60.196
  },
  "oklch": {
    "l": 0.58334,
    "c": 0.16359,
    "h": 270.6
  },
  "luminance": 0.18999
}

Semantic roles & 50–950 ramp

primary
#5871DB
secondary
#E1D7AE
accent
#AA19CC
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5871DB

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

Preview Lab → · Contrast checker → · Palette generator →

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