#5978E8#5978E8

#5978E8 is a mid, vivid blue. Relative luminance 0.214; OKLCH L 60.6% C 0.172 H 269.1°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#5978E8
RGBrgb(89, 120, 232)
HSLhsl(227, 76%, 63%)
HSVhsv(227, 62%, 91%)
CMYKcmyk(61.6%, 48.3%, 0%, 9%)
CIE-LABlab(53.36, 23.06, -60.21)
CIE-LCHlch(53.36, 64.48, 290.96°)
OKLaboklab(60.64% -0.0026 -0.1723)
OKLCHoklch(60.64% 0.172 269.1)
XYZxyz(25.3969, 21.3808, 79.1168)
Luminance0.2138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5978E8 #E8C959
analogous
#59BFE8 #5978E8 #8159E8
triadic
#5978E8 #E85978 #78E859
tetradic
#5978E8 #E859BF #E8C959 #59E881
square
#5978E8 #E859BF #E8C959 #59E881
split-complementary
#5978E8 #E88159 #BFE859
monochromatic
#1839AE #234CE1 #5978E8 #8FA4EF #C5CFF7

Accessibility & contrast

On white

3.98
#5978E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#5978E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5978E8
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5978E8#FFFFFF#000000##000000
##5978E81.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E86EC
Deuteranopia (green-blind)
#2079E6
Tritanopia (blue-blind)
#0092A5
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5978e8;
/* rgb */ color: rgb(89, 120, 232);
/* oklch */ color: oklch(60.6% 0.172 269.1);
Tailwind
colors: {
  custom: {
    50: '#949ef0',
    500: '#5978e8',
    950: '#000000',
  },
}
SCSS
$custom: #5978e8;
$custom-light: #949ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#5978e8",
  "rgb": {
    "r": 89,
    "g": 120,
    "b": 232
  },
  "hsl": {
    "h": 226.993,
    "s": 75.661,
    "l": 62.941
  },
  "oklch": {
    "l": 0.60642,
    "c": 0.17232,
    "h": 269.1
  },
  "luminance": 0.21383
}

Semantic roles & 50–950 ramp

primary
#5978E8
secondary
#E8DDB5
accent
#AC0ED8
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5978E8

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

Preview Lab → · Contrast checker → · Palette generator →

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