#5978DC#5978DC

#5978DC is a mid, vivid blue. Relative luminance 0.207; OKLCH L 59.9% C 0.156 H 268.4°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5978DC
RGBrgb(89, 120, 220)
HSLhsl(226, 65%, 61%)
HSVhsv(226, 60%, 86%)
CMYKcmyk(59.5%, 45.5%, 0%, 13.7%)
CIE-LABlab(52.64, 19.05, -54.63)
CIE-LCHlch(52.64, 57.85, 289.23°)
OKLaboklab(59.86% -0.0042 -0.1559)
OKLCHoklch(59.86% 0.156 268.4)
XYZxyz(23.7502, 20.7221, 70.4445)
Luminance0.2072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5978DC #DCBD59
analogous
#59B9DC #5978DC #7C59DC
triadic
#5978DC #DC5978 #78DC59
tetradic
#5978DC #DC59B9 #DCBD59 #59DC7C
square
#5978DC #DC59B9 #DCBD59 #59DC7C
split-complementary
#5978DC #DC7C59 #B9DC59
monochromatic
#203D9A #2B51CD #5978DC #8CA1E7 #BECAF1

Accessibility & contrast

On white

4.08
#5978DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#5978DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5978DC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5978DC#FFFFFF#000000##000000
##5978DC1.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4984E0
Deuteranopia (green-blind)
#3578DA
Tritanopia (blue-blind)
#008F9F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5978dc;
/* rgb */ color: rgb(89, 120, 220);
/* oklch */ color: oklch(59.9% 0.156 268.4);
Tailwind
colors: {
  custom: {
    50: '#939ee7',
    500: '#5978dc',
    950: '#000000',
  },
}
SCSS
$custom: #5978dc;
$custom-light: #939ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#5978dc",
  "rgb": {
    "r": 89,
    "g": 120,
    "b": 220
  },
  "hsl": {
    "h": 225.802,
    "s": 65.174,
    "l": 60.588
  },
  "oklch": {
    "l": 0.59861,
    "c": 0.15595,
    "h": 268.4
  },
  "luminance": 0.20724
}

Semantic roles & 50–950 ramp

primary
#5978DC
secondary
#E1D6AF
accent
#A218CD
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5978DC

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

Preview Lab → · Contrast checker → · Palette generator →

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