#5878EB#5878EB

#5878EB is a mid, vivid blue. Relative luminance 0.215; OKLCH L 60.8% C 0.177 H 268.9°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#5878EB
RGBrgb(88, 120, 235)
HSLhsl(227, 79%, 63%)
HSVhsv(227, 63%, 92%)
CMYKcmyk(62.6%, 48.9%, 0%, 7.8%)
CIE-LABlab(53.50, 23.90, -61.68)
CIE-LCHlch(53.50, 66.15, 291.18°)
OKLaboklab(60.79% -0.0033 -0.1766)
OKLCHoklch(60.79% 0.177 268.9)
XYZxyz(25.7313, 21.5035, 81.3757)
Luminance0.2151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5878EB #EBCB58
analogous
#58C1EB #5878EB #8158EB
triadic
#5878EB #EB5878 #78EB58
tetradic
#5878EB #EB58C1 #EBCB58 #58EB81
square
#5878EB #EB58C1 #EBCB58 #58EB81
split-complementary
#5878EB #EB8158 #C1EB58
monochromatic
#1538B3 #214CE4 #5878EB #8FA4F2 #C5D0F8

Accessibility & contrast

On white

3.96
#5878EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#5878EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5878EB
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5878EB#FFFFFF#000000##000000
##5878EB1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A87EF
Deuteranopia (green-blind)
#167AE9
Tritanopia (blue-blind)
#0093A6
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5878eb;
/* rgb */ color: rgb(88, 120, 235);
/* oklch */ color: oklch(60.8% 0.177 268.9);
Tailwind
colors: {
  custom: {
    50: '#949ef2',
    500: '#5878eb',
    950: '#000000',
  },
}
SCSS
$custom: #5878eb;
$custom-light: #949ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#5878eb",
  "rgb": {
    "r": 88,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 226.939,
    "s": 78.61,
    "l": 63.333
  },
  "oklch": {
    "l": 0.60788,
    "c": 0.17667,
    "h": 268.9
  },
  "luminance": 0.21506
}

Semantic roles & 50–950 ramp

primary
#5878EB
secondary
#EADEB5
accent
#AE0BDB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5878EB

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

Preview Lab → · Contrast checker → · Palette generator →

#5878EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva