#5981DC#5981DC

#5981DC is a mid, vivid blue. Relative luminance 0.230; OKLCH L 61.7% C 0.145 H 264.6°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#5981DC
RGBrgb(89, 129, 220)
HSLhsl(222, 65%, 61%)
HSVhsv(222, 60%, 86%)
CMYKcmyk(59.5%, 41.4%, 0%, 13.7%)
CIE-LABlab(55.06, 13.56, -50.77)
CIE-LCHlch(55.06, 52.55, 284.96°)
OKLaboklab(61.72% -0.0136 -0.1444)
OKLCHoklch(61.72% 0.145 264.6)
XYZxyz(24.8839, 22.9896, 70.8224)
Luminance0.2299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5981DC #DCB459
analogous
#59C3DC #5981DC #7259DC
triadic
#5981DC #DC5981 #81DC59
tetradic
#5981DC #DC59C3 #DCB459 #59DC72
square
#5981DC #DC59C3 #DCB459 #59DC72
split-complementary
#5981DC #DC7259 #C3DC59
monochromatic
#20469A #2B5CCD #5981DC #8CA7E7 #BECEF1

Accessibility & contrast

On white

3.75
#5981DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#5981DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5981DC
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5981DC#FFFFFF#000000##000000
##5981DC1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#598AE0
Deuteranopia (green-blind)
#477EDA
Tritanopia (blue-blind)
#0095A4
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5981dc;
/* rgb */ color: rgb(89, 129, 220);
/* oklch */ color: oklch(61.7% 0.145 264.6);
Tailwind
colors: {
  custom: {
    50: '#92a5e7',
    500: '#5981dc',
    950: '#000000',
  },
}
SCSS
$custom: #5981dc;
$custom-light: #92a5e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5981dc",
  "rgb": {
    "r": 89,
    "g": 129,
    "b": 220
  },
  "hsl": {
    "h": 221.679,
    "s": 65.174,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61717,
    "c": 0.14509,
    "h": 264.6
  },
  "luminance": 0.22992
}

Semantic roles & 50–950 ramp

primary
#5981DC
secondary
#E1D2AF
accent
#9618CD
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5981DC

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

Preview Lab → · Contrast checker → · Palette generator →

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