#5978DF#5978DF

#5978DF is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.1% C 0.160 H 268.6°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#5978DF
RGBrgb(89, 120, 223)
HSLhsl(226, 68%, 61%)
HSVhsv(226, 60%, 87%)
CMYKcmyk(60.1%, 46.2%, 0%, 12.5%)
CIE-LABlab(52.82, 20.05, -56.03)
CIE-LCHlch(52.82, 59.51, 289.69°)
OKLaboklab(60.05% -0.0038 -0.16)
OKLCHoklch(60.05% 0.16 268.6)
XYZxyz(24.1511, 20.8825, 72.5557)
Luminance0.2089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5978DF #DFC059
analogous
#59BBDF #5978DF #7D59DF
triadic
#5978DF #DF5978 #78DF59
tetradic
#5978DF #DF59BB #DFC059 #59DF7D
square
#5978DF #DF59BB #DFC059 #59DF7D
split-complementary
#5978DF #DF7D59 #BBDF59
monochromatic
#1F3C9F #2950D2 #5978DF #8CA2E9 #C0CBF3

Accessibility & contrast

On white

4.06
#5978DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#5978DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5978DF
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5978DF#FFFFFF#000000##000000
##5978DF1.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4684E3
Deuteranopia (green-blind)
#3078DD
Tritanopia (blue-blind)
#008FA1
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5978df;
/* rgb */ color: rgb(89, 120, 223);
/* oklch */ color: oklch(60.1% 0.160 268.6);
Tailwind
colors: {
  custom: {
    50: '#939ee9',
    500: '#5978df',
    950: '#000000',
  },
}
SCSS
$custom: #5978df;
$custom-light: #939ee9;
$custom-dark: #000000;
JSON
{
  "hex": "#5978df",
  "rgb": {
    "r": 89,
    "g": 120,
    "b": 223
  },
  "hsl": {
    "h": 226.119,
    "s": 67.677,
    "l": 61.176
  },
  "oklch": {
    "l": 0.60053,
    "c": 0.16007,
    "h": 268.6
  },
  "luminance": 0.20885
}

Semantic roles & 50–950 ramp

primary
#5978DF
secondary
#E3D7B1
accent
#A516D0
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5978DF

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

Preview Lab → · Contrast checker → · Palette generator →

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