#5981EF#5981EF

#5981EF is a light, vivid blue. Relative luminance 0.241; OKLCH L 62.9% C 0.171 H 266.5°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5981EF
RGBrgb(89, 129, 239)
HSLhsl(224, 82%, 64%)
HSVhsv(224, 63%, 94%)
CMYKcmyk(62.8%, 46%, 0%, 6.3%)
CIE-LABlab(56.14, 19.92, -59.65)
CIE-LCHlch(56.14, 62.89, 288.47°)
OKLaboklab(62.9% -0.0104 -0.1705)
OKLCHoklch(62.9% 0.171 266.5)
XYZxyz(27.5447, 24.0539, 84.8359)
Luminance0.2406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5981EF #EFC759
analogous
#59CCEF #5981EF #7C59EF
triadic
#5981EF #EF5981 #81EF59
tetradic
#5981EF #EF59CC #EFC759 #59EF7C
square
#5981EF #EF59CC #EFC759 #59EF7C
split-complementary
#5981EF #EF7C59 #CCEF59
monochromatic
#123FBC #2157EA #5981EF #91ABF4 #C9D6FA

Accessibility & contrast

On white

3.61
#5981EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#5981EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5981EF
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5981EF#FFFFFF#000000##000000
##5981EF1.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8EF3
Deuteranopia (green-blind)
#2F80ED
Tritanopia (blue-blind)
#009AAC
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5981ef;
/* rgb */ color: rgb(89, 129, 239);
/* oklch */ color: oklch(62.9% 0.171 266.5);
Tailwind
colors: {
  custom: {
    50: '#95a5f5',
    500: '#5981ef',
    950: '#000000',
  },
}
SCSS
$custom: #5981ef;
$custom-light: #95a5f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5981ef",
  "rgb": {
    "r": 89,
    "g": 129,
    "b": 239
  },
  "hsl": {
    "h": 224,
    "s": 82.418,
    "l": 64.314
  },
  "oklch": {
    "l": 0.62895,
    "c": 0.17087,
    "h": 266.5
  },
  "luminance": 0.24056
}

Semantic roles & 50–950 ramp

primary
#5981EF
secondary
#ECDEB8
accent
#A507DF
background
#F9FAFF
surface
#F2F4FE
border
#CCCED6
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5981EF

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

Preview Lab → · Contrast checker → · Palette generator →

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