#5872BF#5872BF

#5872BF is a mid, vivid blue. Relative luminance 0.179; OKLCH L 56.8% C 0.123 H 268.2°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#5872BF
RGBrgb(88, 114, 191)
HSLhsl(225, 45%, 55%)
HSVhsv(225, 54%, 75%)
CMYKcmyk(53.9%, 40.3%, 0%, 25.1%)
CIE-LABlab(49.34, 12.98, -43.38)
CIE-LCHlch(49.34, 45.28, 286.66°)
OKLaboklab(56.78% -0.0038 -0.123)
OKLCHoklch(56.78% 0.123 268.2)
XYZxyz(19.4427, 17.8695, 51.7047)
Luminance0.1787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5872BF #BFA558
analogous
#58A6BF #5872BF #7158BF
triadic
#5872BF #BF5872 #72BF58
tetradic
#5872BF #BF58A6 #BFA558 #58BF71
square
#5872BF #BF58A6 #BFA558 #58BF71
split-complementary
#5872BF #BF7158 #A6BF58
monochromatic
#2B3D71 #3C559D #5872BF #8497D0 #B0BDE1

Accessibility & contrast

On white

4.59
#5872BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#5872BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5872BF
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5872BF#FFFFFF#000000##FFFFFF
##5872BF1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#527AC2
Deuteranopia (green-blind)
#4671BD
Tritanopia (blue-blind)
#23838F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5872bf;
/* rgb */ color: rgb(88, 114, 191);
/* oklch */ color: oklch(56.8% 0.123 268.2);
Tailwind
colors: {
  custom: {
    50: '#8e9ad3',
    500: '#5872bf',
    950: '#000000',
  },
}
SCSS
$custom: #5872bf;
$custom-light: #8e9ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#5872bf",
  "rgb": {
    "r": 88,
    "g": 114,
    "b": 191
  },
  "hsl": {
    "h": 224.854,
    "s": 44.589,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56782,
    "c": 0.12305,
    "h": 268.2
  },
  "luminance": 0.17871
}

Semantic roles & 50–950 ramp

primary
#5872BF
secondary
#CFC4A4
accent
#B454D4
background
#F9F9FD
surface
#F1F2FA
border
#CBCCD3
text
#0D0E14
muted
#7E7E83

Preview Lab

Preview with #5872BF

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

Preview Lab → · Contrast checker → · Palette generator →

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