#5878EE#5878EE

#5878EE is a mid, vivid blue. Relative luminance 0.217; OKLCH L 61.0% C 0.181 H 269.1°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5878EE
RGBrgb(88, 120, 238)
HSLhsl(227, 82%, 64%)
HSVhsv(227, 63%, 93%)
CMYKcmyk(63%, 49.6%, 0%, 6.7%)
CIE-LABlab(53.68, 24.91, -63.05)
CIE-LCHlch(53.68, 67.79, 291.56°)
OKLaboklab(60.99% -0.0029 -0.1807)
OKLCHoklch(60.99% 0.181 269.1)
XYZxyz(26.1683, 21.6784, 83.6776)
Luminance0.2168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5878EE #EECE58
analogous
#58C3EE #5878EE #8358EE
triadic
#5878EE #EE5878 #78EE58
tetradic
#5878EE #EE58C3 #EECE58 #58EE83
square
#5878EE #EE58C3 #EECE58 #58EE83
split-complementary
#5878EE #EE8358 #C3EE58
monochromatic
#1336B9 #204BE8 #5878EE #90A5F4 #C7D2F9

Accessibility & contrast

On white

3.94
#5878EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#5878EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5878EE
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5878EE#FFFFFF#000000##000000
##5878EE1.003.945.345.34
#FFFFFF3.941.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3687F2
Deuteranopia (green-blind)
#097AEC
Tritanopia (blue-blind)
#0093A8
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5878ee;
/* rgb */ color: rgb(88, 120, 238);
/* oklch */ color: oklch(61.0% 0.181 269.1);
Tailwind
colors: {
  custom: {
    50: '#959ef4',
    500: '#5878ee',
    950: '#000000',
  },
}
SCSS
$custom: #5878ee;
$custom-light: #959ef4;
$custom-dark: #000000;
JSON
{
  "hex": "#5878ee",
  "rgb": {
    "r": 88,
    "g": 120,
    "b": 238
  },
  "hsl": {
    "h": 227.2,
    "s": 81.522,
    "l": 63.922
  },
  "oklch": {
    "l": 0.6099,
    "c": 0.1807,
    "h": 269.1
  },
  "luminance": 0.21681
}

Semantic roles & 50–950 ramp

primary
#5878EE
secondary
#EBE0B7
accent
#B008DE
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5878EE

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

Preview Lab → · Contrast checker → · Palette generator →

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