#5871CC#5871CC

#5871CC is a mid, vivid blue. Relative luminance 0.182; OKLCH L 57.4% C 0.143 H 269.9°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#5871CC
RGBrgb(88, 113, 204)
HSLhsl(227, 53%, 57%)
HSVhsv(227, 57%, 80%)
CMYKcmyk(56.9%, 44.6%, 0%, 20%)
CIE-LABlab(49.79, 17.85, -50.12)
CIE-LCHlch(49.79, 53.20, 289.61°)
OKLaboklab(57.36% -0.0003 -0.1427)
OKLCHoklch(57.36% 0.143 269.9)
XYZxyz(20.8251, 18.2430, 59.5389)
Luminance0.1825 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871CC #CCB358
analogous
#58ABCC #5871CC #7958CC
triadic
#5871CC #CC5871 #71CC58
tetradic
#5871CC #CC58AB #CCB358 #58CC79
square
#5871CC #CC58AB #CCB358 #58CC79
split-complementary
#5871CC #CC7958 #ABCC58
monochromatic
#283B82 #3650B1 #5871CC #8799DA #B6C1E9

Accessibility & contrast

On white

4.52
#5871CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#5871CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871CC
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871CC#FFFFFF#000000##000000
##5871CC1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#487CCF
Deuteranopia (green-blind)
#3972CA
Tritanopia (blue-blind)
#068594
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5871cc;
/* rgb */ color: rgb(88, 113, 204);
/* oklch */ color: oklch(57.4% 0.143 269.9);
Tailwind
colors: {
  custom: {
    50: '#9099dc',
    500: '#5871cc',
    950: '#000000',
  },
}
SCSS
$custom: #5871cc;
$custom-light: #9099dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5871cc",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 227.069,
    "s": 53.211,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57364,
    "c": 0.14274,
    "h": 269.9
  },
  "luminance": 0.18245
}

Semantic roles & 50–950 ramp

primary
#5871CC
secondary
#D7CDA8
accent
#BD4BDD
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5871CC

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

Preview Lab → · Contrast checker → · Palette generator →

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