#5877F2#5877F2

#5877F2 is a mid, vivid blue. Relative luminance 0.217; OKLCH L 61.1% C 0.187 H 269.5°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5877F2
RGBrgb(88, 119, 242)
HSLhsl(228, 86%, 65%)
HSVhsv(228, 64%, 95%)
CMYKcmyk(63.6%, 50.8%, 0%, 5.1%)
CIE-LABlab(53.68, 26.87, -65.28)
CIE-LCHlch(53.68, 70.60, 292.38°)
OKLaboklab(61.07% -0.0016 -0.1872)
OKLCHoklch(61.07% 0.187 269.5)
XYZxyz(26.6429, 21.6768, 86.7672)
Luminance0.2168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5877F2 #F2D358
analogous
#58C4F2 #5877F2 #8658F2
triadic
#5877F2 #F25877 #77F258
tetradic
#5877F2 #F258C4 #F2D358 #58F286
square
#5877F2 #F258C4 #F2D358 #58F286
split-complementary
#5877F2 #F28658 #C4F258
monochromatic
#0F33C1 #1F49EE #5877F2 #91A5F6 #CAD3FB

Accessibility & contrast

On white

3.94
#5877F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#5877F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5877F2
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5877F2#FFFFFF#000000##000000
##5877F21.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)
#2E88F6
Deuteranopia (green-blind)
#007AEF
Tritanopia (blue-blind)
#0094A9
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5877f2;
/* rgb */ color: rgb(88, 119, 242);
/* oklch */ color: oklch(61.1% 0.187 269.5);
Tailwind
colors: {
  custom: {
    50: '#969df7',
    500: '#5877f2',
    950: '#000000',
  },
}
SCSS
$custom: #5877f2;
$custom-light: #969df7;
$custom-dark: #000000;
JSON
{
  "hex": "#5877f2",
  "rgb": {
    "r": 88,
    "g": 119,
    "b": 242
  },
  "hsl": {
    "h": 227.922,
    "s": 85.556,
    "l": 64.706
  },
  "oklch": {
    "l": 0.6107,
    "c": 0.18726,
    "h": 269.5
  },
  "luminance": 0.21679
}

Semantic roles & 50–950 ramp

primary
#5877F2
secondary
#EDE3B8
accent
#B503E2
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5877F2

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

Preview Lab → · Contrast checker → · Palette generator →

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