#5871CF#5871CF

#5871CF is a mid, vivid blue. Relative luminance 0.184; OKLCH L 57.6% C 0.147 H 270.1°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#5871CF
RGBrgb(88, 113, 207)
HSLhsl(227, 55%, 58%)
HSVhsv(227, 57%, 81%)
CMYKcmyk(57.5%, 45.4%, 0%, 18.8%)
CIE-LABlab(49.96, 18.85, -51.55)
CIE-LCHlch(49.96, 54.89, 290.08°)
OKLaboklab(57.55% 0.0002 -0.1469)
OKLCHoklch(57.55% 0.147 270.1)
XYZxyz(21.1884, 18.3883, 61.4521)
Luminance0.1839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871CF #CFB658
analogous
#58ACCF #5871CF #7A58CF
triadic
#5871CF #CF5871 #71CF58
tetradic
#5871CF #CF58AC #CFB658 #58CF7A
square
#5871CF #CF58AC #CFB658 #58CF7A
split-complementary
#5871CF #CF7A58 #ACCF58
monochromatic
#273B86 #344FB6 #5871CF #8899DD #B7C2EA

Accessibility & contrast

On white

4.49
#5871CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#5871CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871CF
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871CF#FFFFFF#000000##000000
##5871CF1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#467CD3
Deuteranopia (green-blind)
#3572CD
Tritanopia (blue-blind)
#008696
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5871cf;
/* rgb */ color: rgb(88, 113, 207);
/* oklch */ color: oklch(57.6% 0.147 270.1);
Tailwind
colors: {
  custom: {
    50: '#9099de',
    500: '#5871cf',
    950: '#000000',
  },
}
SCSS
$custom: #5871cf;
$custom-light: #9099de;
$custom-dark: #000000;
JSON
{
  "hex": "#5871cf",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 207
  },
  "hsl": {
    "h": 227.395,
    "s": 55.349,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57553,
    "c": 0.14695,
    "h": 270.1
  },
  "luminance": 0.1839
}

Semantic roles & 50–950 ramp

primary
#5871CF
secondary
#D9CFAA
accent
#BF49DF
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5871CF

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

Preview Lab → · Contrast checker → · Palette generator →

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