#5872E8#5872E8

#5872E8 is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.4% C 0.180 H 270.7°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5872E8
RGBrgb(88, 114, 232)
HSLhsl(229, 76%, 63%)
HSVhsv(229, 62%, 91%)
CMYKcmyk(62.1%, 50.9%, 0%, 9%)
CIE-LABlab(51.76, 26.57, -62.79)
CIE-LCHlch(51.76, 68.19, 292.94°)
OKLaboklab(59.41% 0.0021 -0.18)
OKLCHoklch(59.41% 0.18 270.7)
XYZxyz(24.6024, 19.9334, 78.8793)
Luminance0.1994 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5872E8 #E8CE58
analogous
#58BAE8 #5872E8 #8658E8
triadic
#5872E8 #E85872 #72E858
tetradic
#5872E8 #E858BA #E8CE58 #58E886
square
#5872E8 #E858BA #E8CE58 #58E886
split-complementary
#5872E8 #E88658 #BAE858
monochromatic
#1833AE #2245E1 #5872E8 #8E9FEF #C4CDF7

Accessibility & contrast

On white

4.21
#5872E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#5872E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5872E8
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5872E8#FFFFFF#000000##000000
##5872E81.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D82EC
Deuteranopia (green-blind)
#0075E6
Tritanopia (blue-blind)
#008DA2
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5872e8;
/* rgb */ color: rgb(88, 114, 232);
/* oklch */ color: oklch(59.4% 0.180 270.7);
Tailwind
colors: {
  custom: {
    50: '#949af0',
    500: '#5872e8',
    950: '#000000',
  },
}
SCSS
$custom: #5872e8;
$custom-light: #949af0;
$custom-dark: #000000;
JSON
{
  "hex": "#5872e8",
  "rgb": {
    "r": 88,
    "g": 114,
    "b": 232
  },
  "hsl": {
    "h": 229.167,
    "s": 75.789,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59413,
    "c": 0.18001,
    "h": 270.7
  },
  "luminance": 0.19936
}

Semantic roles & 50–950 ramp

primary
#5872E8
secondary
#E8DFB4
accent
#B30ED8
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5872E8

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

Preview Lab → · Contrast checker → · Palette generator →

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