#5878F3#5878F3

#5878F3 is a mid, vivid blue. Relative luminance 0.220; OKLCH L 61.3% C 0.187 H 269.2°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#5878F3
RGBrgb(88, 120, 243)
HSLhsl(228, 87%, 65%)
HSVhsv(228, 64%, 95%)
CMYKcmyk(63.8%, 50.6%, 0%, 4.7%)
CIE-LABlab(54.00, 26.60, -65.32)
CIE-LCHlch(54.00, 70.53, 292.16°)
OKLaboklab(61.33% -0.0025 -0.1874)
OKLCHoklch(61.33% 0.187 269.2)
XYZxyz(26.9131, 21.9763, 87.6002)
Luminance0.2198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5878F3 #F3D358
analogous
#58C5F3 #5878F3 #8658F3
triadic
#5878F3 #F35878 #78F358
tetradic
#5878F3 #F358C5 #F3D358 #58F386
square
#5878F3 #F358C5 #F3D358 #58F386
split-complementary
#5878F3 #F38658 #C5F358
monochromatic
#0E33C3 #1F4AEF #5878F3 #91A6F7 #CAD4FB

Accessibility & contrast

On white

3.89
#5878F3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#5878F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5878F3
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5878F3#FFFFFF#000000##000000
##5878F31.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F88F7
Deuteranopia (green-blind)
#007AF0
Tritanopia (blue-blind)
#0095AA
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5878f3;
/* rgb */ color: rgb(88, 120, 243);
/* oklch */ color: oklch(61.3% 0.187 269.2);
Tailwind
colors: {
  custom: {
    50: '#969ef8',
    500: '#5878f3',
    950: '#000000',
  },
}
SCSS
$custom: #5878f3;
$custom-light: #969ef8;
$custom-dark: #000000;
JSON
{
  "hex": "#5878f3",
  "rgb": {
    "r": 88,
    "g": 120,
    "b": 243
  },
  "hsl": {
    "h": 227.613,
    "s": 86.592,
    "l": 64.902
  },
  "oklch": {
    "l": 0.61333,
    "c": 0.18738,
    "h": 269.2
  },
  "luminance": 0.21979
}

Semantic roles & 50–950 ramp

primary
#5878F3
secondary
#EEE3B9
accent
#B502E3
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5878F3

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

Preview Lab → · Contrast checker → · Palette generator →

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