#5981F4#5981F4

#5981F4 is a light, vivid blue. Relative luminance 0.244; OKLCH L 63.2% C 0.178 H 266.9°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#5981F4
RGBrgb(89, 129, 244)
HSLhsl(225, 88%, 65%)
HSVhsv(225, 64%, 96%)
CMYKcmyk(63.5%, 47.1%, 0%, 4.3%)
CIE-LABlab(56.44, 21.61, -61.95)
CIE-LCHlch(56.44, 65.61, 289.23°)
OKLaboklab(63.22% -0.0097 -0.1773)
OKLCHoklch(63.22% 0.178 266.9)
XYZxyz(28.2936, 24.3534, 88.7800)
Luminance0.2436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5981F4 #F4CC59
analogous
#59CFF4 #5981F4 #7E59F4
triadic
#5981F4 #F45981 #81F459
tetradic
#5981F4 #F459CF #F4CC59 #59F47E
square
#5981F4 #F459CF #F4CC59 #59F47E
split-complementary
#5981F4 #F47E59 #CFF459
monochromatic
#0D3DC6 #2055F0 #5981F4 #92ADF8 #CCD8FC

Accessibility & contrast

On white

3.58
#5981F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#5981F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5981F4
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5981F4#FFFFFF#000000##000000
##5981F41.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#468FF8
Deuteranopia (green-blind)
#2681F2
Tritanopia (blue-blind)
#009BAF
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5981f4;
/* rgb */ color: rgb(89, 129, 244);
/* oklch */ color: oklch(63.2% 0.178 266.9);
Tailwind
colors: {
  custom: {
    50: '#96a5f8',
    500: '#5981f4',
    950: '#000000',
  },
}
SCSS
$custom: #5981f4;
$custom-light: #96a5f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5981f4",
  "rgb": {
    "r": 89,
    "g": 129,
    "b": 244
  },
  "hsl": {
    "h": 224.516,
    "s": 87.571,
    "l": 65.294
  },
  "oklch": {
    "l": 0.63219,
    "c": 0.17757,
    "h": 266.9
  },
  "luminance": 0.24356
}

Semantic roles & 50–950 ramp

primary
#5981F4
secondary
#EFE1BA
accent
#AA01E4
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0F0F17
muted
#7E7F85

Preview Lab

Preview with #5981F4

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

Preview Lab → · Contrast checker → · Palette generator →

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