#5978EB#5978EB

#5978EB is a mid, vivid blue. Relative luminance 0.216; OKLCH L 60.8% C 0.176 H 269.3°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5978EB
RGBrgb(89, 120, 235)
HSLhsl(227, 78%, 64%)
HSVhsv(227, 62%, 92%)
CMYKcmyk(62.1%, 48.9%, 0%, 7.8%)
CIE-LABlab(53.55, 24.07, -61.59)
CIE-LCHlch(53.55, 66.13, 291.35°)
OKLaboklab(60.84% -0.0023 -0.1764)
OKLCHoklch(60.84% 0.176 269.3)
XYZxyz(25.8266, 21.5527, 81.3802)
Luminance0.2155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5978EB #EBCC59
analogous
#59C1EB #5978EB #8359EB
triadic
#5978EB #EB5978 #78EB59
tetradic
#5978EB #EB59C1 #EBCC59 #59EB83
square
#5978EB #EB59C1 #EBCC59 #59EB83
split-complementary
#5978EB #EB8359 #C1EB59
monochromatic
#1637B4 #224CE4 #5978EB #90A4F2 #C6D1F8

Accessibility & contrast

On white

3.95
#5978EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#5978EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5978EB
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5978EB#FFFFFF#000000##000000
##5978EB1.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A87EF
Deuteranopia (green-blind)
#187AE9
Tritanopia (blue-blind)
#0093A6
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5978eb;
/* rgb */ color: rgb(89, 120, 235);
/* oklch */ color: oklch(60.8% 0.176 269.3);
Tailwind
colors: {
  custom: {
    50: '#959ef2',
    500: '#5978eb',
    950: '#000000',
  },
}
SCSS
$custom: #5978eb;
$custom-light: #959ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#5978eb",
  "rgb": {
    "r": 89,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 227.26,
    "s": 78.495,
    "l": 63.529
  },
  "oklch": {
    "l": 0.60842,
    "c": 0.17637,
    "h": 269.3
  },
  "luminance": 0.21555
}

Semantic roles & 50–950 ramp

primary
#5978EB
secondary
#EADFB6
accent
#AF0BDB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5978EB

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

Preview Lab → · Contrast checker → · Palette generator →

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