#5978D8#5978D8

#5978D8 is a mid, vivid blue. Relative luminance 0.205; OKLCH L 59.6% C 0.150 H 268.2°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5978D8
RGBrgb(89, 120, 216)
HSLhsl(225, 62%, 60%)
HSVhsv(225, 59%, 85%)
CMYKcmyk(58.8%, 44.4%, 0%, 15.3%)
CIE-LABlab(52.41, 17.72, -52.74)
CIE-LCHlch(52.41, 55.64, 288.57°)
OKLaboklab(59.61% -0.0048 -0.1503)
OKLCHoklch(59.61% 0.15 268.2)
XYZxyz(23.2268, 20.5128, 67.6878)
Luminance0.2051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5978D8 #D8B959
analogous
#59B8D8 #5978D8 #7959D8
triadic
#5978D8 #D85978 #78D859
tetradic
#5978D8 #D859B8 #D8B959 #59D879
square
#5978D8 #D859B8 #D8B959 #59D879
split-complementary
#5978D8 #D87959 #B8D859
monochromatic
#233E94 #2E53C5 #5978D8 #8BA0E4 #BCC9EF

Accessibility & contrast

On white

4.12
#5978D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#5978D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5978D8
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5978D8#FFFFFF#000000##000000
##5978D81.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C83DC
Deuteranopia (green-blind)
#3A78D6
Tritanopia (blue-blind)
#008D9D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5978d8;
/* rgb */ color: rgb(89, 120, 216);
/* oklch */ color: oklch(59.6% 0.150 268.2);
Tailwind
colors: {
  custom: {
    50: '#929ee4',
    500: '#5978d8',
    950: '#000000',
  },
}
SCSS
$custom: #5978d8;
$custom-light: #929ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#5978d8",
  "rgb": {
    "r": 89,
    "g": 120,
    "b": 216
  },
  "hsl": {
    "h": 225.354,
    "s": 61.951,
    "l": 59.804
  },
  "oklch": {
    "l": 0.59609,
    "c": 0.15042,
    "h": 268.2
  },
  "luminance": 0.20515
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5978D8

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

Preview Lab → · Contrast checker → · Palette generator →

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