#5981EC#5981EC

#5981EC is a light, vivid blue. Relative luminance 0.239; OKLCH L 62.7% C 0.167 H 266.3°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#5981EC
RGBrgb(89, 129, 236)
HSLhsl(224, 79%, 64%)
HSVhsv(224, 62%, 93%)
CMYKcmyk(62.3%, 45.3%, 0%, 7.5%)
CIE-LABlab(55.97, 18.91, -58.27)
CIE-LCHlch(55.97, 61.26, 287.98°)
OKLaboklab(62.7% -0.0108 -0.1665)
OKLCHoklch(62.7% 0.167 266.3)
XYZxyz(27.1052, 23.8781, 82.5211)
Luminance0.2388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5981EC #ECC459
analogous
#59CBEC #5981EC #7A59EC
triadic
#5981EC #EC5981 #81EC59
tetradic
#5981EC #EC59CB #ECC459 #59EC7A
square
#5981EC #EC59CB #ECC459 #59EC7A
split-complementary
#5981EC #EC7A59 #CBEC59
monochromatic
#1541B6 #2257E6 #5981EC #90ABF2 #C7D4F9

Accessibility & contrast

On white

3.64
#5981EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#5981EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5981EC
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5981EC#FFFFFF#000000##000000
##5981EC1.003.645.785.78
#FFFFFF3.641.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8DF0
Deuteranopia (green-blind)
#3480EA
Tritanopia (blue-blind)
#0099AB
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5981ec;
/* rgb */ color: rgb(89, 129, 236);
/* oklch */ color: oklch(62.7% 0.167 266.3);
Tailwind
colors: {
  custom: {
    50: '#95a5f3',
    500: '#5981ec',
    950: '#000000',
  },
}
SCSS
$custom: #5981ec;
$custom-light: #95a5f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5981ec",
  "rgb": {
    "r": 89,
    "g": 129,
    "b": 236
  },
  "hsl": {
    "h": 223.673,
    "s": 79.459,
    "l": 63.725
  },
  "oklch": {
    "l": 0.62704,
    "c": 0.16683,
    "h": 266.3
  },
  "luminance": 0.2388
}

Semantic roles & 50–950 ramp

primary
#5981EC
secondary
#EADCB6
accent
#A30ADC
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5981EC

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

Preview Lab → · Contrast checker → · Palette generator →

#5981EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva