#5870E5#5870E5

#5870E5 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.8% C 0.178 H 271.2°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#5870E5
RGBrgb(88, 112, 229)
HSLhsl(230, 73%, 62%)
HSVhsv(230, 62%, 90%)
CMYKcmyk(61.6%, 51.1%, 0%, 10.2%)
CIE-LABlab(51.06, 26.80, -62.25)
CIE-LCHlch(51.06, 67.77, 293.29°)
OKLaboklab(58.82% 0.0037 -0.1784)
OKLCHoklch(58.82% 0.178 271.2)
XYZxyz(23.9568, 19.3182, 76.5799)
Luminance0.1932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5870E5 #E5CD58
analogous
#58B7E5 #5870E5 #8658E5
triadic
#5870E5 #E55870 #70E558
tetradic
#5870E5 #E558B7 #E5CD58 #58E586
square
#5870E5 #E558B7 #E5CD58 #58E586
split-complementary
#5870E5 #E58658 #B7E558
monochromatic
#1A32A8 #2343DD #5870E5 #8D9DED #C2CBF5

Accessibility & contrast

On white

4.32
#5870E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#5870E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5870E5
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5870E5#FFFFFF#000000##000000
##5870E51.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C80E9
Deuteranopia (green-blind)
#0074E3
Tritanopia (blue-blind)
#008BA0
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5870e5;
/* rgb */ color: rgb(88, 112, 229);
/* oklch */ color: oklch(58.8% 0.178 271.2);
Tailwind
colors: {
  custom: {
    50: '#9498ee',
    500: '#5870e5',
    950: '#000000',
  },
}
SCSS
$custom: #5870e5;
$custom-light: #9498ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5870e5",
  "rgb": {
    "r": 88,
    "g": 112,
    "b": 229
  },
  "hsl": {
    "h": 229.787,
    "s": 73.057,
    "l": 62.157
  },
  "oklch": {
    "l": 0.58819,
    "c": 0.17845,
    "h": 271.2
  },
  "luminance": 0.1932
}

Semantic roles & 50–950 ramp

primary
#5870E5
secondary
#E6DDB3
accent
#B410D5
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5870E5

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

Preview Lab → · Contrast checker → · Palette generator →

#5870E5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva