#5872E4#5872E4

#5872E4 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.1% C 0.175 H 270.6°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#5872E4
RGBrgb(88, 114, 228)
HSLhsl(229, 72%, 62%)
HSVhsv(229, 61%, 89%)
CMYKcmyk(61.4%, 50%, 0%, 10.6%)
CIE-LABlab(51.51, 25.23, -60.96)
CIE-LCHlch(51.51, 65.98, 292.49°)
OKLaboklab(59.14% 0.0017 -0.1746)
OKLCHoklch(59.14% 0.175 270.6)
XYZxyz(24.0407, 19.7087, 75.9210)
Luminance0.1971 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5872E4 #E4CA58
analogous
#58B8E4 #5872E4 #8458E4
triadic
#5872E4 #E45872 #72E458
tetradic
#5872E4 #E458B8 #E4CA58 #58E484
square
#5872E4 #E458B8 #E4CA58 #58E484
split-complementary
#5872E4 #E48458 #B8E458
monochromatic
#1B35A7 #2346DB #5872E4 #8D9EED #C1CBF5

Accessibility & contrast

On white

4.25
#5872E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#5872E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5872E4
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5872E4#FFFFFF#000000##000000
##5872E41.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3381E8
Deuteranopia (green-blind)
#0C75E2
Tritanopia (blue-blind)
#008CA0
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5872e4;
/* rgb */ color: rgb(88, 114, 228);
/* oklch */ color: oklch(59.1% 0.175 270.6);
Tailwind
colors: {
  custom: {
    50: '#949aed',
    500: '#5872e4',
    950: '#000000',
  },
}
SCSS
$custom: #5872e4;
$custom-light: #949aed;
$custom-dark: #000000;
JSON
{
  "hex": "#5872e4",
  "rgb": {
    "r": 88,
    "g": 114,
    "b": 228
  },
  "hsl": {
    "h": 228.857,
    "s": 72.165,
    "l": 61.961
  },
  "oklch": {
    "l": 0.59138,
    "c": 0.17461,
    "h": 270.6
  },
  "luminance": 0.19711
}

Semantic roles & 50–950 ramp

primary
#5872E4
secondary
#E6DCB2
accent
#B011D4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5872E4

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

Preview Lab → · Contrast checker → · Palette generator →

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