#5871CA#5871CA

#5871CA is a mid, vivid blue. Relative luminance 0.181; OKLCH L 57.2% C 0.140 H 269.8°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#5871CA
RGBrgb(88, 113, 202)
HSLhsl(227, 52%, 57%)
HSVhsv(227, 56%, 79%)
CMYKcmyk(56.4%, 44.1%, 0%, 20.8%)
CIE-LABlab(49.67, 17.19, -49.16)
CIE-LCHlch(49.67, 52.08, 289.28°)
OKLaboklab(57.24% -0.0006 -0.1399)
OKLCHoklch(57.24% 0.14 269.8)
XYZxyz(20.5868, 18.1477, 58.2837)
Luminance0.1815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871CA #CAB158
analogous
#58AACA #5871CA #7858CA
triadic
#5871CA #CA5871 #71CA58
tetradic
#5871CA #CA58AA #CAB158 #58CA78
square
#5871CA #CA58AA #CAB158 #58CA78
split-complementary
#5871CA #CA7858 #AACA58
monochromatic
#283B7F #3751AE #5871CA #8699D9 #B5C0E7

Accessibility & contrast

On white

4.54
#5871CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#5871CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871CA
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871CA#FFFFFF#000000##000000
##5871CA1.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A7BCD
Deuteranopia (green-blind)
#3B71C8
Tritanopia (blue-blind)
#0E8594
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5871ca;
/* rgb */ color: rgb(88, 113, 202);
/* oklch */ color: oklch(57.2% 0.140 269.8);
Tailwind
colors: {
  custom: {
    50: '#9099da',
    500: '#5871ca',
    950: '#000000',
  },
}
SCSS
$custom: #5871ca;
$custom-light: #9099da;
$custom-dark: #000000;
JSON
{
  "hex": "#5871ca",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 202
  },
  "hsl": {
    "h": 226.842,
    "s": 51.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.57239,
    "c": 0.13992,
    "h": 269.8
  },
  "luminance": 0.18149
}

Semantic roles & 50–950 ramp

primary
#5871CA
secondary
#D6CCA8
accent
#BC4DDB
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5871CA

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

Preview Lab → · Contrast checker → · Palette generator →

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