#5978DB#5978DB

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

Color values

HEX#5978DB
RGBrgb(89, 120, 219)
HSLhsl(226, 64%, 60%)
HSVhsv(226, 59%, 86%)
CMYKcmyk(59.4%, 45.2%, 0%, 14.1%)
CIE-LABlab(52.59, 18.72, -54.16)
CIE-LCHlch(52.59, 57.30, 289.07°)
OKLaboklab(59.8% -0.0044 -0.1545)
OKLCHoklch(59.8% 0.155 268.4)
XYZxyz(23.6182, 20.6693, 69.7491)
Luminance0.2067 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5978DB #DBBC59
analogous
#59B9DB #5978DB #7B59DB
triadic
#5978DB #DB5978 #78DB59
tetradic
#5978DB #DB59B9 #DBBC59 #59DB7B
square
#5978DB #DB59B9 #DBBC59 #59DB7B
split-complementary
#5978DB #DB7B59 #B9DB59
monochromatic
#213E99 #2C52CB #5978DB #8BA1E6 #BECAF1

Accessibility & contrast

On white

4.09
#5978DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#5978DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5978DB
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5978DB#FFFFFF#000000##000000
##5978DB1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A84DF
Deuteranopia (green-blind)
#3678D9
Tritanopia (blue-blind)
#008E9F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5978db;
/* rgb */ color: rgb(89, 120, 219);
/* oklch */ color: oklch(59.8% 0.155 268.4);
Tailwind
colors: {
  custom: {
    50: '#929ee7',
    500: '#5978db',
    950: '#000000',
  },
}
SCSS
$custom: #5978db;
$custom-light: #929ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#5978db",
  "rgb": {
    "r": 89,
    "g": 120,
    "b": 219
  },
  "hsl": {
    "h": 225.692,
    "s": 64.356,
    "l": 60.392
  },
  "oklch": {
    "l": 0.59798,
    "c": 0.15456,
    "h": 268.4
  },
  "luminance": 0.20671
}

Semantic roles & 50–950 ramp

primary
#5978DB
secondary
#E1D5AF
accent
#A219CC
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5978DB

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

Preview Lab → · Contrast checker → · Palette generator →

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