#5871CB#5871CB

#5871CB is a mid, vivid blue. Relative luminance 0.182; OKLCH L 57.3% C 0.141 H 269.8°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#5871CB
RGBrgb(88, 113, 203)
HSLhsl(227, 53%, 57%)
HSVhsv(227, 57%, 80%)
CMYKcmyk(56.7%, 44.3%, 0%, 20.4%)
CIE-LABlab(49.73, 17.52, -49.64)
CIE-LCHlch(49.73, 52.64, 289.44°)
OKLaboklab(57.3% -0.0004 -0.1413)
OKLCHoklch(57.3% 0.141 269.8)
XYZxyz(20.7055, 18.1952, 58.9092)
Luminance0.1820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5871CB #CBB258
analogous
#58AACB #5871CB #7958CB
triadic
#5871CB #CB5871 #71CB58
tetradic
#5871CB #CB58AA #CBB258 #58CB79
square
#5871CB #CB58AA #CBB258 #58CB79
split-complementary
#5871CB #CB7958 #AACB58
monochromatic
#283B81 #3751AF #5871CB #8799DA #B5C0E8

Accessibility & contrast

On white

4.53
#5871CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#5871CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5871CB
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5871CB#FFFFFF#000000##000000
##5871CB1.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#497CCE
Deuteranopia (green-blind)
#3A72C9
Tritanopia (blue-blind)
#0A8594
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5871cb;
/* rgb */ color: rgb(88, 113, 203);
/* oklch */ color: oklch(57.3% 0.141 269.8);
Tailwind
colors: {
  custom: {
    50: '#9099db',
    500: '#5871cb',
    950: '#000000',
  },
}
SCSS
$custom: #5871cb;
$custom-light: #9099db;
$custom-dark: #000000;
JSON
{
  "hex": "#5871cb",
  "rgb": {
    "r": 88,
    "g": 113,
    "b": 203
  },
  "hsl": {
    "h": 226.957,
    "s": 52.511,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57301,
    "c": 0.14133,
    "h": 269.8
  },
  "luminance": 0.18197
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5871CB

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

Preview Lab → · Contrast checker → · Palette generator →

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