#5981BB#5981BB

#5981BB is a mid, moderate blue. Relative luminance 0.214; OKLCH L 59.9% C 0.100 H 257.6°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#5981BB
RGBrgb(89, 129, 187)
HSLhsl(216, 42%, 54%)
HSVhsv(216, 52%, 73%)
CMYKcmyk(52.4%, 31%, 0%, 26.7%)
CIE-LABlab(53.40, 2.85, -34.69)
CIE-LCHlch(53.40, 34.80, 274.69°)
OKLaboklab(59.88% -0.0214 -0.0975)
OKLCHoklch(59.88% 0.1 257.6)
XYZxyz(20.9367, 21.4107, 50.0335)
Luminance0.2141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5981BB #BB9359
analogous
#59B2BB #5981BB #6259BB
triadic
#5981BB #BB5981 #81BB59
tetradic
#5981BB #BB59B2 #BB9359 #59BB62
square
#5981BB #BB59B2 #BB9359 #59BB62
split-complementary
#5981BB #BB6259 #B2BB59
monochromatic
#2D476D #3E6398 #5981BB #84A2CD #B0C3DF

Accessibility & contrast

On white

3.98
#5981BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#5981BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5981BB
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5981BB#FFFFFF#000000##000000
##5981BB1.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A85BD
Deuteranopia (green-blind)
#5E7BBA
Tritanopia (blue-blind)
#268E96
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5981bb;
/* rgb */ color: rgb(89, 129, 187);
/* oklch */ color: oklch(59.9% 0.100 257.6);
Tailwind
colors: {
  custom: {
    50: '#8ea5cf',
    500: '#5981bb',
    950: '#000000',
  },
}
SCSS
$custom: #5981bb;
$custom-light: #8ea5cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5981bb",
  "rgb": {
    "r": 89,
    "g": 129,
    "b": 187
  },
  "hsl": {
    "h": 215.51,
    "s": 41.88,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5988,
    "c": 0.09985,
    "h": 257.6
  },
  "luminance": 0.21412
}

Semantic roles & 50–950 ramp

primary
#5981BB
secondary
#CDBCA3
accent
#9F56D2
background
#F9FAFC
surface
#F1F4F9
border
#CBCED2
text
#0D0F14
muted
#7E7F82

Preview Lab

Preview with #5981BB

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

Preview Lab → · Contrast checker → · Palette generator →

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