#5B81DC#5B81DC

#5B81DC is a mid, vivid blue. Relative luminance 0.231; OKLCH L 61.8% C 0.144 H 265.3°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#5B81DC
RGBrgb(91, 129, 220)
HSLhsl(222, 65%, 61%)
HSVhsv(222, 59%, 86%)
CMYKcmyk(58.6%, 41.4%, 0%, 13.7%)
CIE-LABlab(55.16, 13.95, -50.60)
CIE-LCHlch(55.16, 52.48, 285.41°)
OKLaboklab(61.82% -0.0117 -0.1439)
OKLCHoklch(61.82% 0.144 265.3)
XYZxyz(25.0785, 23.0899, 70.8315)
Luminance0.2309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B81DC #DCB65B
analogous
#5BC1DC #5B81DC #755BDC
triadic
#5B81DC #DC5B81 #81DC5B
tetradic
#5B81DC #DC5BC1 #DCB65B #5BDC75
square
#5B81DC #DC5BC1 #DCB65B #5BDC75
split-complementary
#5B81DC #DC755B #C1DC5B
monochromatic
#21459B #2C5CCE #5B81DC #8DA8E7 #C0CEF2

Accessibility & contrast

On white

3.74
#5B81DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#5B81DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B81DC
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B81DC#FFFFFF#000000##000000
##5B81DC1.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b81dc;
/* rgb */ color: rgb(91, 129, 220);
/* oklch */ color: oklch(61.8% 0.144 265.3);
Tailwind
colors: {
  custom: {
    50: '#93a5e7',
    500: '#5b81dc',
    950: '#000000',
  },
}
SCSS
$custom: #5b81dc;
$custom-light: #93a5e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b81dc",
  "rgb": {
    "r": 91,
    "g": 129,
    "b": 220
  },
  "hsl": {
    "h": 222.326,
    "s": 64.824,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61824,
    "c": 0.14439,
    "h": 265.3
  },
  "luminance": 0.23092
}

Semantic roles & 50–950 ramp

primary
#5B81DC
secondary
#E2D3B1
accent
#9819CD
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5B81DC

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

Preview Lab → · Contrast checker → · Palette generator →

#5B81DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva