#5979E8#5979E8

#5979E8 is a mid, vivid blue. Relative luminance 0.216; OKLCH L 60.8% C 0.171 H 268.8°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5979E8
RGBrgb(89, 121, 232)
HSLhsl(227, 76%, 63%)
HSVhsv(227, 62%, 91%)
CMYKcmyk(61.6%, 47.8%, 0%, 9%)
CIE-LABlab(53.62, 22.45, -59.79)
CIE-LCHlch(53.62, 63.87, 290.58°)
OKLaboklab(60.84% -0.0036 -0.1711)
OKLCHoklch(60.84% 0.171 268.8)
XYZxyz(25.5177, 21.6226, 79.1571)
Luminance0.2162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5979E8 #E8C859
analogous
#59C1E8 #5979E8 #8059E8
triadic
#5979E8 #E85979 #79E859
tetradic
#5979E8 #E859C1 #E8C859 #59E880
square
#5979E8 #E859C1 #E8C859 #59E880
split-complementary
#5979E8 #E88059 #C1E859
monochromatic
#183AAE #234EE1 #5979E8 #8FA4EF #C5D0F7

Accessibility & contrast

On white

3.94
#5979E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#5979E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5979E8
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5979E8#FFFFFF#000000##000000
##5979E81.003.945.325.32
#FFFFFF3.941.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4087EC
Deuteranopia (green-blind)
#247AE6
Tritanopia (blue-blind)
#0092A5
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5979e8;
/* rgb */ color: rgb(89, 121, 232);
/* oklch */ color: oklch(60.8% 0.171 268.8);
Tailwind
colors: {
  custom: {
    50: '#949ff0',
    500: '#5979e8',
    950: '#000000',
  },
}
SCSS
$custom: #5979e8;
$custom-light: #949ff0;
$custom-dark: #000000;
JSON
{
  "hex": "#5979e8",
  "rgb": {
    "r": 89,
    "g": 121,
    "b": 232
  },
  "hsl": {
    "h": 226.573,
    "s": 75.661,
    "l": 62.941
  },
  "oklch": {
    "l": 0.6084,
    "c": 0.1711,
    "h": 268.8
  },
  "luminance": 0.21625
}

Semantic roles & 50–950 ramp

primary
#5979E8
secondary
#E8DDB5
accent
#AB0ED8
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5979E8

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

Preview Lab → · Contrast checker → · Palette generator →

#5979E8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva