#5871BF#5871BF

#5871BF is a mid, vivid blue. Relative luminance 0.176; OKLCH L 56.6% C 0.124 H 268.8°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#5871BF
RGBrgb(88, 113, 191)
HSLhsl(225, 45%, 55%)
HSVhsv(225, 54%, 75%)
CMYKcmyk(53.9%, 40.8%, 0%, 25.1%)
CIE-LABlab(49.06, 13.60, -43.82)
CIE-LCHlch(49.06, 45.88, 287.24°)
OKLaboklab(56.57% -0.0026 -0.1243)
OKLCHoklch(56.57% 0.124 268.8)
XYZxyz(19.3305, 17.6452, 51.6673)
Luminance0.1765 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871BF #BFA658
analogous
#58A5BF #5871BF #7358BF
triadic
#5871BF #BF5871 #71BF58
tetradic
#5871BF #BF58A5 #BFA658 #58BF73
square
#5871BF #BF58A5 #BFA658 #58BF73
split-complementary
#5871BF #BF7358 #A5BF58
monochromatic
#2B3C71 #3C549D #5871BF #8497D0 #B0BCE1

Accessibility & contrast

On white

4.64
#5871BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#5871BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5871BF
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871BF#FFFFFF#000000##FFFFFF
##5871BF1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5179C2
Deuteranopia (green-blind)
#4570BD
Tritanopia (blue-blind)
#23828F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5871bf;
/* rgb */ color: rgb(88, 113, 191);
/* oklch */ color: oklch(56.6% 0.124 268.8);
Tailwind
colors: {
  custom: {
    50: '#8e99d3',
    500: '#5871bf',
    950: '#000000',
  },
}
SCSS
$custom: #5871bf;
$custom-light: #8e99d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5871bf",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 191
  },
  "hsl": {
    "h": 225.437,
    "s": 44.589,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56571,
    "c": 0.12431,
    "h": 268.8
  },
  "luminance": 0.17647
}

Semantic roles & 50–950 ramp

primary
#5871BF
secondary
#CFC5A4
accent
#B554D4
background
#F9F9FD
surface
#F1F2FA
border
#CBCCD3
text
#0D0D14
muted
#7E7E83

Preview Lab

Preview with #5871BF

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

Preview Lab → · Contrast checker → · Palette generator →

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