#5878D2#5878D2

#5878D2 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.2% C 0.142 H 267.3°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#5878D2
RGBrgb(88, 120, 210)
HSLhsl(224, 58%, 58%)
HSVhsv(224, 58%, 82%)
CMYKcmyk(58.1%, 42.9%, 0%, 17.6%)
CIE-LABlab(52.02, 15.53, -49.98)
CIE-LCHlch(52.02, 52.34, 287.26°)
OKLaboklab(59.18% -0.0068 -0.1423)
OKLCHoklch(59.18% 0.142 267.3)
XYZxyz(22.3699, 20.1590, 63.6725)
Luminance0.2016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5878D2 #D2B258
analogous
#58B5D2 #5878D2 #7558D2
triadic
#5878D2 #D25878 #78D258
tetradic
#5878D2 #D258B5 #D2B258 #58D275
square
#5878D2 #D258B5 #D2B258 #58D275
split-complementary
#5878D2 #D27558 #B5D258
monochromatic
#25408A #3256BB #5878D2 #889FDF #B8C6EC

Accessibility & contrast

On white

4.17
#5878D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#5878D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5878D2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5878D2#FFFFFF#000000##000000
##5878D21.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5082D5
Deuteranopia (green-blind)
#4077D0
Tritanopia (blue-blind)
#008C9B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5878d2;
/* rgb */ color: rgb(88, 120, 210);
/* oklch */ color: oklch(59.2% 0.142 267.3);
Tailwind
colors: {
  custom: {
    50: '#919ee0',
    500: '#5878d2',
    950: '#000000',
  },
}
SCSS
$custom: #5878d2;
$custom-light: #919ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#5878d2",
  "rgb": {
    "r": 88,
    "g": 120,
    "b": 210
  },
  "hsl": {
    "h": 224.262,
    "s": 57.547,
    "l": 58.431
  },
  "oklch": {
    "l": 0.59181,
    "c": 0.14242,
    "h": 267.3
  },
  "luminance": 0.20161
}

Semantic roles & 50–950 ramp

primary
#5878D2
secondary
#DBCEAB
accent
#B847E1
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5878D2

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

Preview Lab → · Contrast checker → · Palette generator →

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