#5879F2#5879F2

#5879F2 is a mid, vivid blue. Relative luminance 0.222; OKLCH L 61.5% C 0.185 H 268.9°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#5879F2
RGBrgb(88, 121, 242)
HSLhsl(227, 86%, 65%)
HSVhsv(227, 64%, 95%)
CMYKcmyk(63.6%, 50%, 0%, 5.1%)
CIE-LABlab(54.19, 25.65, -64.46)
CIE-LCHlch(54.19, 69.37, 291.70°)
OKLaboklab(61.46% -0.0035 -0.1848)
OKLCHoklch(61.46% 0.185 268.9)
XYZxyz(26.8834, 22.1578, 86.8473)
Luminance0.2216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5879F2 #F2D158
analogous
#58C6F2 #5879F2 #8458F2
triadic
#5879F2 #F25879 #79F258
tetradic
#5879F2 #F258C6 #F2D158 #58F284
square
#5879F2 #F258C6 #F2D158 #58F284
split-complementary
#5879F2 #F28458 #C6F258
monochromatic
#0F35C1 #1F4BEE #5879F2 #91A7F6 #CAD4FB

Accessibility & contrast

On white

3.87
#5879F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#5879F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5879F2
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5879F2#FFFFFF#000000##000000
##5879F21.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3489F6
Deuteranopia (green-blind)
#007BF0
Tritanopia (blue-blind)
#0095AA
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5879f2;
/* rgb */ color: rgb(88, 121, 242);
/* oklch */ color: oklch(61.5% 0.185 268.9);
Tailwind
colors: {
  custom: {
    50: '#969ff7',
    500: '#5879f2',
    950: '#000000',
  },
}
SCSS
$custom: #5879f2;
$custom-light: #969ff7;
$custom-dark: #000000;
JSON
{
  "hex": "#5879f2",
  "rgb": {
    "r": 88,
    "g": 121,
    "b": 242
  },
  "hsl": {
    "h": 227.143,
    "s": 85.556,
    "l": 64.706
  },
  "oklch": {
    "l": 0.61458,
    "c": 0.18483,
    "h": 268.9
  },
  "luminance": 0.2216
}

Semantic roles & 50–950 ramp

primary
#5879F2
secondary
#EDE2B8
accent
#B203E2
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5879F2

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

Preview Lab → · Contrast checker → · Palette generator →

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