#5873E4#5873E4

#5873E4 is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.3% C 0.173 H 270.3°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5873E4
RGBrgb(88, 115, 228)
HSLhsl(228, 72%, 62%)
HSVhsv(228, 61%, 89%)
CMYKcmyk(61.4%, 49.6%, 0%, 10.6%)
CIE-LABlab(51.76, 24.62, -60.54)
CIE-LCHlch(51.76, 65.36, 292.13°)
OKLaboklab(59.33% 0.0008 -0.1734)
OKLCHoklch(59.33% 0.173 270.3)
XYZxyz(24.1541, 19.9356, 75.9588)
Luminance0.1994 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5873E4 #E4C958
analogous
#58B9E4 #5873E4 #8358E4
triadic
#5873E4 #E45873 #73E458
tetradic
#5873E4 #E458B9 #E4C958 #58E483
square
#5873E4 #E458B9 #E4C958 #58E483
split-complementary
#5873E4 #E48358 #B9E458
monochromatic
#1B36A7 #2347DB #5873E4 #8D9FED #C1CBF5

Accessibility & contrast

On white

4.21
#5873E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#5873E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5873E4
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5873E4#FFFFFF#000000##000000
##5873E41.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)
#3682E8
Deuteranopia (green-blind)
#1375E2
Tritanopia (blue-blind)
#008DA1
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5873e4;
/* rgb */ color: rgb(88, 115, 228);
/* oklch */ color: oklch(59.3% 0.173 270.3);
Tailwind
colors: {
  custom: {
    50: '#939aed',
    500: '#5873e4',
    950: '#000000',
  },
}
SCSS
$custom: #5873e4;
$custom-light: #939aed;
$custom-dark: #000000;
JSON
{
  "hex": "#5873e4",
  "rgb": {
    "r": 88,
    "g": 115,
    "b": 228
  },
  "hsl": {
    "h": 228.429,
    "s": 72.165,
    "l": 61.961
  },
  "oklch": {
    "l": 0.59333,
    "c": 0.17337,
    "h": 270.3
  },
  "luminance": 0.19938
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5873E4

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

Preview Lab → · Contrast checker → · Palette generator →

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