#5978BF#5978BF

#5978BF is a mid, moderate blue. Relative luminance 0.193; OKLCH L 58.1% C 0.115 H 265.2°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#5978BF
RGBrgb(89, 120, 191)
HSLhsl(222, 44%, 55%)
HSVhsv(222, 53%, 75%)
CMYKcmyk(53.4%, 37.2%, 0%, 25.1%)
CIE-LABlab(51.06, 9.53, -40.66)
CIE-LCHlch(51.06, 41.76, 283.19°)
OKLaboklab(58.12% -0.0097 -0.115)
OKLCHoklch(58.12% 0.115 265.2)
XYZxyz(20.2371, 19.3169, 51.9422)
Luminance0.1932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5978BF #BFA059
analogous
#59ABBF #5978BF #6D59BF
triadic
#5978BF #BF5978 #78BF59
tetradic
#5978BF #BF59AB #BFA059 #59BF6D
square
#5978BF #BF59AB #BFA059 #59BF6D
split-complementary
#5978BF #BF6D59 #ABBF59
monochromatic
#2C4172 #3D5A9E #5978BF #859CD0 #B1C0E1

Accessibility & contrast

On white

4.32
#5978BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#5978BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5978BF
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5978BF#FFFFFF#000000##000000
##5978BF1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C7FC2
Deuteranopia (green-blind)
#5075BD
Tritanopia (blue-blind)
#248792
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5978bf;
/* rgb */ color: rgb(89, 120, 191);
/* oklch */ color: oklch(58.1% 0.115 265.2);
Tailwind
colors: {
  custom: {
    50: '#8e9ed2',
    500: '#5978bf',
    950: '#000000',
  },
}
SCSS
$custom: #5978bf;
$custom-light: #8e9ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#5978bf",
  "rgb": {
    "r": 89,
    "g": 120,
    "b": 191
  },
  "hsl": {
    "h": 221.765,
    "s": 44.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.58124,
    "c": 0.11537,
    "h": 265.2
  },
  "luminance": 0.19318
}

Semantic roles & 50–950 ramp

primary
#5978BF
secondary
#CFC2A4
accent
#AD54D4
background
#F9F9FC
surface
#F1F2F9
border
#CBCCD2
text
#0D0E14
muted
#7E7E82

Preview Lab

Preview with #5978BF

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

Preview Lab → · Contrast checker → · Palette generator →

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