#5979EB#5979EB

#5979EB is a mid, vivid blue. Relative luminance 0.218; OKLCH L 61.0% C 0.175 H 268.9°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5979EB
RGBrgb(89, 121, 235)
HSLhsl(227, 78%, 64%)
HSVhsv(227, 62%, 92%)
CMYKcmyk(62.1%, 48.5%, 0%, 7.8%)
CIE-LABlab(53.81, 23.46, -61.17)
CIE-LCHlch(53.81, 65.52, 290.98°)
OKLaboklab(61.04% -0.0033 -0.1751)
OKLCHoklch(61.04% 0.175 268.9)
XYZxyz(25.9475, 21.7945, 81.4205)
Luminance0.2180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5979EB #EBCB59
analogous
#59C2EB #5979EB #8259EB
triadic
#5979EB #EB5979 #79EB59
tetradic
#5979EB #EB59C2 #EBCB59 #59EB82
square
#5979EB #EB59C2 #EBCB59 #59EB82
split-complementary
#5979EB #EB8259 #C2EB59
monochromatic
#1638B4 #224DE4 #5979EB #90A5F2 #C6D1F8

Accessibility & contrast

On white

3.92
#5979EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#5979EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5979EB
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5979EB#FFFFFF#000000##000000
##5979EB1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D87EF
Deuteranopia (green-blind)
#1C7AE9
Tritanopia (blue-blind)
#0093A7
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5979eb;
/* rgb */ color: rgb(89, 121, 235);
/* oklch */ color: oklch(61.0% 0.175 268.9);
Tailwind
colors: {
  custom: {
    50: '#959ff2',
    500: '#5979eb',
    950: '#000000',
  },
}
SCSS
$custom: #5979eb;
$custom-light: #959ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#5979eb",
  "rgb": {
    "r": 89,
    "g": 121,
    "b": 235
  },
  "hsl": {
    "h": 226.849,
    "s": 78.495,
    "l": 63.529
  },
  "oklch": {
    "l": 0.61039,
    "c": 0.17515,
    "h": 268.9
  },
  "luminance": 0.21797
}

Semantic roles & 50–950 ramp

primary
#5979EB
secondary
#EADEB6
accent
#AD0BDB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5979EB

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

Preview Lab → · Contrast checker → · Palette generator →

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