#5872B1#5872B1

#5872B1 is a mid, moderate blue. Relative luminance 0.173; OKLCH L 56.0% C 0.103 H 266.1°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#5872B1
RGBrgb(88, 114, 177)
HSLhsl(222, 36%, 52%)
HSVhsv(222, 50%, 69%)
CMYKcmyk(50.3%, 35.6%, 0%, 30.6%)
CIE-LABlab(48.61, 8.49, -36.43)
CIE-LCHlch(48.61, 37.41, 283.12°)
OKLaboklab(55.99% -0.0069 -0.1027)
OKLCHoklch(55.99% 0.103 266.1)
XYZxyz(17.9750, 17.2825, 43.9751)
Luminance0.1728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5872B1 #B19758
analogous
#589FB1 #5872B1 #6B58B1
triadic
#5872B1 #B15872 #72B158
tetradic
#5872B1 #B1589F #B19758 #58B16B
square
#5872B1 #B1589F #B19758 #58B16B
split-complementary
#5872B1 #B16B58 #9FB158
monochromatic
#2D3D61 #41578B #5872B1 #8295C4 #ABB8D8

Accessibility & contrast

On white

4.71
#5872B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#5872B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5872B1
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5872B1#FFFFFF#000000##FFFFFF
##5872B11.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A78B4
Deuteranopia (green-blind)
#5070B0
Tritanopia (blue-blind)
#317F89
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5872b1;
/* rgb */ color: rgb(88, 114, 177);
/* oklch */ color: oklch(56.0% 0.103 266.1);
Tailwind
colors: {
  custom: {
    50: '#8c9ac8',
    500: '#5872b1',
    950: '#000000',
  },
}
SCSS
$custom: #5872b1;
$custom-light: #8c9ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#5872b1",
  "rgb": {
    "r": 88,
    "g": 114,
    "b": 177
  },
  "hsl": {
    "h": 222.472,
    "s": 36.327,
    "l": 51.961
  },
  "oklch": {
    "l": 0.55987,
    "c": 0.10293,
    "h": 266.1
  },
  "luminance": 0.17284
}

Semantic roles & 50–950 ramp

primary
#5872B1
secondary
#C6BA9F
accent
#AB5BCC
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0E13
muted
#7D7E82

Preview Lab

Preview with #5872B1

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

Preview Lab → · Contrast checker → · Palette generator →

#5872B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva