#5978F3#5978F3

#5978F3 is a mid, vivid blue. Relative luminance 0.220; OKLCH L 61.4% C 0.187 H 269.5°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#5978F3
RGBrgb(89, 120, 243)
HSLhsl(228, 87%, 65%)
HSVhsv(228, 63%, 95%)
CMYKcmyk(63.4%, 50.6%, 0%, 4.7%)
CIE-LABlab(54.05, 26.76, -65.23)
CIE-LCHlch(54.05, 70.51, 292.31°)
OKLaboklab(61.39% -0.0015 -0.1871)
OKLCHoklch(61.39% 0.187 269.5)
XYZxyz(27.0085, 22.0254, 87.6047)
Luminance0.2203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5978F3 #F3D459
analogous
#59C5F3 #5978F3 #8759F3
triadic
#5978F3 #F35978 #78F359
tetradic
#5978F3 #F359C5 #F3D459 #59F387
square
#5978F3 #F359C5 #F3D459 #59F387
split-complementary
#5978F3 #F38759 #C5F359
monochromatic
#0E33C3 #204AEF #5978F3 #92A6F7 #CBD5FB

Accessibility & contrast

On white

3.88
#5978F3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#5978F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5978F3
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5978F3#FFFFFF#000000##000000
##5978F31.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3088F7
Deuteranopia (green-blind)
#007BF0
Tritanopia (blue-blind)
#0095AA
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5978f3;
/* rgb */ color: rgb(89, 120, 243);
/* oklch */ color: oklch(61.4% 0.187 269.5);
Tailwind
colors: {
  custom: {
    50: '#969ef8',
    500: '#5978f3',
    950: '#000000',
  },
}
SCSS
$custom: #5978f3;
$custom-light: #969ef8;
$custom-dark: #000000;
JSON
{
  "hex": "#5978f3",
  "rgb": {
    "r": 89,
    "g": 120,
    "b": 243
  },
  "hsl": {
    "h": 227.922,
    "s": 86.517,
    "l": 65.098
  },
  "oklch": {
    "l": 0.61386,
    "c": 0.18709,
    "h": 269.5
  },
  "luminance": 0.22028
}

Semantic roles & 50–950 ramp

primary
#5978F3
secondary
#EEE3BA
accent
#B602E3
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5978F3

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

Preview Lab → · Contrast checker → · Palette generator →

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