#5979D8#5979D8

#5979D8 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 59.8% C 0.149 H 267.7°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5979D8
RGBrgb(89, 121, 216)
HSLhsl(225, 62%, 60%)
HSVhsv(225, 59%, 85%)
CMYKcmyk(58.8%, 44%, 0%, 15.3%)
CIE-LABlab(52.68, 17.11, -52.31)
CIE-LCHlch(52.68, 55.04, 288.11°)
OKLaboklab(59.81% -0.0059 -0.1491)
OKLCHoklch(59.81% 0.149 267.7)
XYZxyz(23.3477, 20.7546, 67.7281)
Luminance0.2076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5979D8 #D8B859
analogous
#59B8D8 #5979D8 #7959D8
triadic
#5979D8 #D85979 #79D859
tetradic
#5979D8 #D859B8 #D8B859 #59D879
square
#5979D8 #D859B8 #D8B859 #59D879
split-complementary
#5979D8 #D87959 #B8D859
monochromatic
#233F94 #2E54C5 #5979D8 #8BA1E4 #BCC9EF

Accessibility & contrast

On white

4.08
#5979D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#5979D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5979D8
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5979D8#FFFFFF#000000##000000
##5979D81.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E84DC
Deuteranopia (green-blind)
#3C78D6
Tritanopia (blue-blind)
#008E9E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5979d8;
/* rgb */ color: rgb(89, 121, 216);
/* oklch */ color: oklch(59.8% 0.149 267.7);
Tailwind
colors: {
  custom: {
    50: '#929fe4',
    500: '#5979d8',
    950: '#000000',
  },
}
SCSS
$custom: #5979d8;
$custom-light: #929fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#5979d8",
  "rgb": {
    "r": 89,
    "g": 121,
    "b": 216
  },
  "hsl": {
    "h": 224.882,
    "s": 61.951,
    "l": 59.804
  },
  "oklch": {
    "l": 0.59814,
    "c": 0.1492,
    "h": 267.7
  },
  "luminance": 0.20756
}

Semantic roles & 50–950 ramp

primary
#5979D8
secondary
#DFD3AE
accent
#BC43E5
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5979D8

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

Preview Lab → · Contrast checker → · Palette generator →

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