#5978EF#5978EF

#5978EF is a mid, vivid blue. Relative luminance 0.218; OKLCH L 61.1% C 0.182 H 269.4°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5978EF
RGBrgb(89, 120, 239)
HSLhsl(228, 82%, 64%)
HSVhsv(228, 63%, 94%)
CMYKcmyk(62.8%, 49.8%, 0%, 6.3%)
CIE-LABlab(53.80, 25.42, -63.42)
CIE-LCHlch(53.80, 68.32, 291.84°)
OKLaboklab(61.11% -0.0019 -0.1817)
OKLCHoklch(61.11% 0.182 269.4)
XYZxyz(26.4110, 21.7865, 84.4580)
Luminance0.2179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5978EF #EFD059
analogous
#59C3EF #5978EF #8559EF
triadic
#5978EF #EF5978 #78EF59
tetradic
#5978EF #EF59C3 #EFD059 #59EF85
square
#5978EF #EF59C3 #EFD059 #59EF85
split-complementary
#5978EF #EF8559 #C3EF59
monochromatic
#1235BC #214BEA #5978EF #91A5F4 #C9D3FA

Accessibility & contrast

On white

3.92
#5978EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#5978EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5978EF
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5978EF#FFFFFF#000000##000000
##5978EF1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3588F3
Deuteranopia (green-blind)
#057AED
Tritanopia (blue-blind)
#0094A8
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5978ef;
/* rgb */ color: rgb(89, 120, 239);
/* oklch */ color: oklch(61.1% 0.182 269.4);
Tailwind
colors: {
  custom: {
    50: '#969ef5',
    500: '#5978ef',
    950: '#000000',
  },
}
SCSS
$custom: #5978ef;
$custom-light: #969ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#5978ef",
  "rgb": {
    "r": 89,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 227.6,
    "s": 82.418,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61112,
    "c": 0.18175,
    "h": 269.4
  },
  "luminance": 0.21789
}

Semantic roles & 50–950 ramp

primary
#5978EF
secondary
#ECE1B8
accent
#B207DF
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5978EF

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

Preview Lab → · Contrast checker → · Palette generator →

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