#5878F1#5878F1

#5878F1 is a mid, vivid blue. Relative luminance 0.219; OKLCH L 61.2% C 0.185 H 269.2°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5878F1
RGBrgb(88, 120, 241)
HSLhsl(227, 85%, 65%)
HSVhsv(227, 63%, 95%)
CMYKcmyk(63.5%, 50.2%, 0%, 5.5%)
CIE-LABlab(53.87, 25.92, -64.41)
CIE-LCHlch(53.87, 69.44, 291.92°)
OKLaboklab(61.2% -0.0026 -0.1847)
OKLCHoklch(61.2% 0.185 269.2)
XYZxyz(26.6128, 21.8561, 86.0182)
Luminance0.2186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5878F1 #F1D158
analogous
#58C5F1 #5878F1 #8558F1
triadic
#5878F1 #F15878 #78F158
tetradic
#5878F1 #F158C5 #F1D158 #58F185
square
#5878F1 #F158C5 #F1D158 #58F185
split-complementary
#5878F1 #F18558 #C5F158
monochromatic
#1035BF #204AEC #5878F1 #90A6F6 #C9D3FA

Accessibility & contrast

On white

3.91
#5878F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#5878F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5878F1
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5878F1#FFFFFF#000000##000000
##5878F11.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3288F5
Deuteranopia (green-blind)
#007AEF
Tritanopia (blue-blind)
#0094A9
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5878f1;
/* rgb */ color: rgb(88, 120, 241);
/* oklch */ color: oklch(61.2% 0.185 269.2);
Tailwind
colors: {
  custom: {
    50: '#959ef6',
    500: '#5878f1',
    950: '#000000',
  },
}
SCSS
$custom: #5878f1;
$custom-light: #959ef6;
$custom-dark: #000000;
JSON
{
  "hex": "#5878f1",
  "rgb": {
    "r": 88,
    "g": 120,
    "b": 241
  },
  "hsl": {
    "h": 227.451,
    "s": 84.53,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61195,
    "c": 0.18471,
    "h": 269.2
  },
  "luminance": 0.21859
}

Semantic roles & 50–950 ramp

primary
#5878F1
secondary
#EDE2B8
accent
#B305E1
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5878F1

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

Preview Lab → · Contrast checker → · Palette generator →

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