#5978E4#5978E4

#5978E4 is a mid, vivid blue. Relative luminance 0.212; OKLCH L 60.4% C 0.167 H 268.9°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#5978E4
RGBrgb(89, 120, 228)
HSLhsl(227, 72%, 62%)
HSVhsv(227, 61%, 89%)
CMYKcmyk(61%, 47.4%, 0%, 10.6%)
CIE-LABlab(53.12, 21.72, -58.36)
CIE-LCHlch(53.12, 62.27, 290.42°)
OKLaboklab(60.38% -0.0031 -0.1669)
OKLCHoklch(60.38% 0.167 268.9)
XYZxyz(24.8352, 21.1561, 76.1585)
Luminance0.2116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5978E4 #E4C559
analogous
#59BDE4 #5978E4 #8059E4
triadic
#5978E4 #E45978 #78E459
tetradic
#5978E4 #E459BD #E4C559 #59E480
square
#5978E4 #E459BD #E4C559 #59E480
split-complementary
#5978E4 #E48059 #BDE459
monochromatic
#1B3AA7 #244DDB #5978E4 #8EA3ED #C2CEF5

Accessibility & contrast

On white

4.01
#5978E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#5978E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5978E4
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5978E4#FFFFFF#000000##000000
##5978E41.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4285E8
Deuteranopia (green-blind)
#2879E2
Tritanopia (blue-blind)
#0091A3
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5978e4;
/* rgb */ color: rgb(89, 120, 228);
/* oklch */ color: oklch(60.4% 0.167 268.9);
Tailwind
colors: {
  custom: {
    50: '#949eed',
    500: '#5978e4',
    950: '#000000',
  },
}
SCSS
$custom: #5978e4;
$custom-light: #949eed;
$custom-dark: #000000;
JSON
{
  "hex": "#5978e4",
  "rgb": {
    "r": 89,
    "g": 120,
    "b": 228
  },
  "hsl": {
    "h": 226.619,
    "s": 72.021,
    "l": 62.157
  },
  "oklch": {
    "l": 0.60378,
    "c": 0.1669,
    "h": 268.9
  },
  "luminance": 0.21158
}

Semantic roles & 50–950 ramp

primary
#5978E4
secondary
#E6DBB3
accent
#A911D4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5978E4

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

Preview Lab → · Contrast checker → · Palette generator →

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