#5979E2#5979E2

#5979E2 is a mid, vivid blue. Relative luminance 0.213; OKLCH L 60.4% C 0.163 H 268.5°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#5979E2
RGBrgb(89, 121, 226)
HSLhsl(226, 70%, 62%)
HSVhsv(226, 61%, 89%)
CMYKcmyk(60.6%, 46.5%, 0%, 11.4%)
CIE-LABlab(53.26, 20.44, -57.01)
CIE-LCHlch(53.26, 60.56, 289.72°)
OKLaboklab(60.45% -0.0044 -0.1629)
OKLCHoklch(60.45% 0.163 268.5)
XYZxyz(24.6800, 21.2875, 74.7451)
Luminance0.2129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5979E2 #E2C259
analogous
#59BEE2 #5979E2 #7E59E2
triadic
#5979E2 #E25979 #79E259
tetradic
#5979E2 #E259BE #E2C259 #59E27E
square
#5979E2 #E259BE #E2C259 #59E27E
split-complementary
#5979E2 #E27E59 #BEE259
monochromatic
#1D3CA4 #264FD8 #5979E2 #8DA3EB #C1CDF4

Accessibility & contrast

On white

3.99
#5979E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#5979E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5979E2
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5979E2#FFFFFF#000000##000000
##5979E21.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4686E6
Deuteranopia (green-blind)
#2F79E0
Tritanopia (blue-blind)
#0091A3
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5979e2;
/* rgb */ color: rgb(89, 121, 226);
/* oklch */ color: oklch(60.4% 0.163 268.5);
Tailwind
colors: {
  custom: {
    50: '#939fec',
    500: '#5979e2',
    950: '#000000',
  },
}
SCSS
$custom: #5979e2;
$custom-light: #939fec;
$custom-dark: #000000;
JSON
{
  "hex": "#5979e2",
  "rgb": {
    "r": 89,
    "g": 121,
    "b": 226
  },
  "hsl": {
    "h": 225.985,
    "s": 70.256,
    "l": 61.765
  },
  "oklch": {
    "l": 0.60448,
    "c": 0.16294,
    "h": 268.5
  },
  "luminance": 0.2129
}

Semantic roles & 50–950 ramp

primary
#5979E2
secondary
#E5D9B2
accent
#A613D2
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5979E2

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

Preview Lab → · Contrast checker → · Palette generator →

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