#5979EC#5979EC

#5979EC is a mid, vivid blue. Relative luminance 0.219; OKLCH L 61.1% C 0.176 H 269.0°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5979EC
RGBrgb(89, 121, 236)
HSLhsl(227, 79%, 64%)
HSVhsv(227, 62%, 93%)
CMYKcmyk(62.3%, 48.7%, 0%, 7.5%)
CIE-LABlab(53.87, 23.80, -61.63)
CIE-LCHlch(53.87, 66.07, 291.11°)
OKLaboklab(61.11% -0.0031 -0.1765)
OKLCHoklch(61.11% 0.177 269)
XYZxyz(26.0924, 21.8524, 82.1835)
Luminance0.2185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5979EC #ECCC59
analogous
#59C2EC #5979EC #8259EC
triadic
#5979EC #EC5979 #79EC59
tetradic
#5979EC #EC59C2 #ECCC59 #59EC82
square
#5979EC #EC59C2 #ECCC59 #59EC82
split-complementary
#5979EC #EC8259 #C2EC59
monochromatic
#1538B6 #224DE6 #5979EC #90A5F2 #C7D2F9

Accessibility & contrast

On white

3.91
#5979EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#5979EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5979EC
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5979EC#FFFFFF#000000##000000
##5979EC1.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)
#3C88F0
Deuteranopia (green-blind)
#1A7AEA
Tritanopia (blue-blind)
#0093A7
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5979ec;
/* rgb */ color: rgb(89, 121, 236);
/* oklch */ color: oklch(61.1% 0.176 269.0);
Tailwind
colors: {
  custom: {
    50: '#959ff3',
    500: '#5979ec',
    950: '#000000',
  },
}
SCSS
$custom: #5979ec;
$custom-light: #959ff3;
$custom-dark: #000000;
JSON
{
  "hex": "#5979ec",
  "rgb": {
    "r": 89,
    "g": 121,
    "b": 236
  },
  "hsl": {
    "h": 226.939,
    "s": 79.459,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61106,
    "c": 0.1765,
    "h": 269
  },
  "luminance": 0.21855
}

Semantic roles & 50–950 ramp

primary
#5979EC
secondary
#EADFB6
accent
#AE0ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5979EC

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

Preview Lab → · Contrast checker → · Palette generator →

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