#5871BA#5871BA

#5871BA is a mid, moderate blue. Relative luminance 0.174; OKLCH L 56.3% C 0.117 H 268.2°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#5871BA
RGBrgb(88, 113, 186)
HSLhsl(225, 42%, 54%)
HSVhsv(225, 53%, 73%)
CMYKcmyk(52.7%, 39.2%, 0%, 27.1%)
CIE-LABlab(48.80, 11.98, -41.36)
CIE-LCHlch(48.80, 43.06, 286.15°)
OKLaboklab(56.28% -0.0036 -0.1171)
OKLCHoklch(56.28% 0.117 268.2)
XYZxyz(18.7896, 17.4288, 48.8188)
Luminance0.1743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871BA #BAA158
analogous
#58A2BA #5871BA #7058BA
triadic
#5871BA #BA5871 #71BA58
tetradic
#5871BA #BA58A2 #BAA158 #58BA70
square
#5871BA #BA58A2 #BAA158 #58BA70
split-complementary
#5871BA #BA7058 #A2BA58
monochromatic
#2C3C6B #3E5597 #5871BA #8396CC #AFBBDE

Accessibility & contrast

On white

4.68
#5871BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#5871BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5871BA
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871BA#FFFFFF#000000##FFFFFF
##5871BA1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5479BD
Deuteranopia (green-blind)
#4970B8
Tritanopia (blue-blind)
#29818C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5871ba;
/* rgb */ color: rgb(88, 113, 186);
/* oklch */ color: oklch(56.3% 0.117 268.2);
Tailwind
colors: {
  custom: {
    50: '#8d99cf',
    500: '#5871ba',
    950: '#000000',
  },
}
SCSS
$custom: #5871ba;
$custom-light: #8d99cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5871ba",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 186
  },
  "hsl": {
    "h": 224.694,
    "s": 41.525,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56278,
    "c": 0.11714,
    "h": 268.2
  },
  "luminance": 0.1743
}

Semantic roles & 50–950 ramp

primary
#5871BA
secondary
#CCC1A2
accent
#B256D1
background
#F9F9FC
surface
#F1F2F9
border
#CBCCD2
text
#0D0D14
muted
#7E7E82

Preview Lab

Preview with #5871BA

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

Preview Lab → · Contrast checker → · Palette generator →

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