#5979EF#5979EF

#5979EF is a mid, vivid blue. Relative luminance 0.220; OKLCH L 61.3% C 0.181 H 269.1°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#5979EF
RGBrgb(89, 121, 239)
HSLhsl(227, 82%, 64%)
HSVhsv(227, 63%, 94%)
CMYKcmyk(62.8%, 49.4%, 0%, 6.3%)
CIE-LABlab(54.06, 24.80, -63.00)
CIE-LCHlch(54.06, 67.71, 291.49°)
OKLaboklab(61.31% -0.0028 -0.1805)
OKLCHoklch(61.31% 0.181 269.1)
XYZxyz(26.5319, 22.0282, 84.4983)
Luminance0.2203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5979EF #EFCF59
analogous
#59C4EF #5979EF #8459EF
triadic
#5979EF #EF5979 #79EF59
tetradic
#5979EF #EF59C4 #EFCF59 #59EF84
square
#5979EF #EF59C4 #EFCF59 #59EF84
split-complementary
#5979EF #EF8459 #C4EF59
monochromatic
#1236BC #214CEA #5979EF #91A6F4 #C9D3FA

Accessibility & contrast

On white

3.88
#5979EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#5979EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5979EF
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5979EF#FFFFFF#000000##000000
##5979EF1.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3888F3
Deuteranopia (green-blind)
#0E7BED
Tritanopia (blue-blind)
#0094A9
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5979ef;
/* rgb */ color: rgb(89, 121, 239);
/* oklch */ color: oklch(61.3% 0.181 269.1);
Tailwind
colors: {
  custom: {
    50: '#959ff5',
    500: '#5979ef',
    950: '#000000',
  },
}
SCSS
$custom: #5979ef;
$custom-light: #959ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#5979ef",
  "rgb": {
    "r": 89,
    "g": 121,
    "b": 239
  },
  "hsl": {
    "h": 227.2,
    "s": 82.418,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61307,
    "c": 0.18053,
    "h": 269.1
  },
  "luminance": 0.22031
}

Semantic roles & 50–950 ramp

primary
#5979EF
secondary
#ECE1B8
accent
#B107DF
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5979EF

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

Preview Lab → · Contrast checker → · Palette generator →

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