#5979DC#5979DC

#5979DC is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.1% C 0.155 H 268.1°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#5979DC
RGBrgb(89, 121, 220)
HSLhsl(225, 65%, 61%)
HSVhsv(225, 60%, 86%)
CMYKcmyk(59.5%, 45%, 0%, 13.7%)
CIE-LABlab(52.91, 18.44, -54.20)
CIE-LCHlch(52.91, 57.25, 288.79°)
OKLaboklab(60.07% -0.0053 -0.1546)
OKLCHoklch(60.07% 0.155 268.1)
XYZxyz(23.8711, 20.9639, 70.4848)
Luminance0.2097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5979DC #DCBC59
analogous
#59BADC #5979DC #7B59DC
triadic
#5979DC #DC5979 #79DC59
tetradic
#5979DC #DC59BA #DCBC59 #59DC7B
square
#5979DC #DC59BA #DCBC59 #59DC7B
split-complementary
#5979DC #DC7B59 #BADC59
monochromatic
#203E9A #2B53CD #5979DC #8CA2E7 #BECBF1

Accessibility & contrast

On white

4.04
#5979DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#5979DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5979DC
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5979DC#FFFFFF#000000##000000
##5979DC1.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B85E0
Deuteranopia (green-blind)
#3779DA
Tritanopia (blue-blind)
#008FA0
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5979dc;
/* rgb */ color: rgb(89, 121, 220);
/* oklch */ color: oklch(60.1% 0.155 268.1);
Tailwind
colors: {
  custom: {
    50: '#929fe7',
    500: '#5979dc',
    950: '#000000',
  },
}
SCSS
$custom: #5979dc;
$custom-light: #929fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#5979dc",
  "rgb": {
    "r": 89,
    "g": 121,
    "b": 220
  },
  "hsl": {
    "h": 225.344,
    "s": 65.174,
    "l": 60.588
  },
  "oklch": {
    "l": 0.60065,
    "c": 0.15471,
    "h": 268.1
  },
  "luminance": 0.20966
}

Semantic roles & 50–950 ramp

primary
#5979DC
secondary
#E1D5AF
accent
#A118CD
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5979DC

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

Preview Lab → · Contrast checker → · Palette generator →

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