#5872BA#5872BA

#5872BA is a mid, moderate blue. Relative luminance 0.177; OKLCH L 56.5% C 0.116 H 267.6°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#5872BA
RGBrgb(88, 114, 186)
HSLhsl(224, 42%, 54%)
HSVhsv(224, 53%, 73%)
CMYKcmyk(52.7%, 38.7%, 0%, 27.1%)
CIE-LABlab(49.07, 11.36, -40.92)
CIE-LCHlch(49.07, 42.47, 285.52°)
OKLaboklab(56.49% -0.0048 -0.1158)
OKLCHoklch(56.49% 0.116 267.6)
XYZxyz(18.9018, 17.6532, 48.8562)
Luminance0.1766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5872BA #BAA058
analogous
#58A3BA #5872BA #6F58BA
triadic
#5872BA #BA5872 #72BA58
tetradic
#5872BA #BA58A3 #BAA058 #58BA6F
square
#5872BA #BA58A3 #BAA058 #58BA6F
split-complementary
#5872BA #BA6F58 #A3BA58
monochromatic
#2C3D6B #3E5697 #5872BA #8397CC #AFBBDE

Accessibility & contrast

On white

4.63
#5872BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#5872BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5872BA
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5872BA#FFFFFF#000000##FFFFFF
##5872BA1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5579BD
Deuteranopia (green-blind)
#4A71B8
Tritanopia (blue-blind)
#29828D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5872ba;
/* rgb */ color: rgb(88, 114, 186);
/* oklch */ color: oklch(56.5% 0.116 267.6);
Tailwind
colors: {
  custom: {
    50: '#8d9acf',
    500: '#5872ba',
    950: '#000000',
  },
}
SCSS
$custom: #5872ba;
$custom-light: #8d9acf;
$custom-dark: #000000;
JSON
{
  "hex": "#5872ba",
  "rgb": {
    "r": 88,
    "g": 114,
    "b": 186
  },
  "hsl": {
    "h": 224.082,
    "s": 41.525,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56492,
    "c": 0.11589,
    "h": 267.6
  },
  "luminance": 0.17655
}

Semantic roles & 50–950 ramp

primary
#5872BA
secondary
#CCC1A2
accent
#B156D1
background
#F9F9FC
surface
#F1F2F9
border
#CBCCD2
text
#0D0E14
muted
#7E7E82

Preview Lab

Preview with #5872BA

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

Preview Lab → · Contrast checker → · Palette generator →

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