#5877E1#5877E1

#5877E1 is a mid, vivid blue. Relative luminance 0.207; OKLCH L 59.9% C 0.164 H 268.8°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5877E1
RGBrgb(88, 119, 225)
HSLhsl(226, 70%, 61%)
HSVhsv(226, 61%, 88%)
CMYKcmyk(60.9%, 47.1%, 0%, 11.8%)
CIE-LABlab(52.62, 21.15, -57.48)
CIE-LCHlch(52.62, 61.25, 290.20°)
OKLaboklab(59.93% -0.0035 -0.1643)
OKLCHoklch(59.93% 0.164 268.8)
XYZxyz(24.2073, 20.7025, 73.9399)
Luminance0.2071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5877E1 #E1C258
analogous
#58BCE1 #5877E1 #7E58E1
triadic
#5877E1 #E15877 #77E158
tetradic
#5877E1 #E158BC #E1C258 #58E17E
square
#5877E1 #E158BC #E1C258 #58E17E
split-complementary
#5877E1 #E17E58 #BCE158
monochromatic
#1D3BA2 #264ED5 #5877E1 #8CA1EA #C0CCF4

Accessibility & contrast

On white

4.08
#5877E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#5877E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5877E1
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5877E1#FFFFFF#000000##000000
##5877E11.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4284E5
Deuteranopia (green-blind)
#2A78DF
Tritanopia (blue-blind)
#008FA1
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5877e1;
/* rgb */ color: rgb(88, 119, 225);
/* oklch */ color: oklch(59.9% 0.164 268.8);
Tailwind
colors: {
  custom: {
    50: '#939deb',
    500: '#5877e1',
    950: '#000000',
  },
}
SCSS
$custom: #5877e1;
$custom-light: #939deb;
$custom-dark: #000000;
JSON
{
  "hex": "#5877e1",
  "rgb": {
    "r": 88,
    "g": 119,
    "b": 225
  },
  "hsl": {
    "h": 226.423,
    "s": 69.543,
    "l": 61.373
  },
  "oklch": {
    "l": 0.59926,
    "c": 0.16434,
    "h": 268.8
  },
  "luminance": 0.20705
}

Semantic roles & 50–950 ramp

primary
#5877E1
secondary
#E4D8B1
accent
#A714D2
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5877E1

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

Preview Lab → · Contrast checker → · Palette generator →

#5877E1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva