#5B81DD#5B81DD

#5B81DD is a mid, vivid blue. Relative luminance 0.231; OKLCH L 61.9% C 0.146 H 265.5°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#5B81DD
RGBrgb(91, 129, 221)
HSLhsl(222, 66%, 61%)
HSVhsv(222, 59%, 87%)
CMYKcmyk(58.8%, 41.6%, 0%, 13.3%)
CIE-LABlab(55.22, 14.28, -51.07)
CIE-LCHlch(55.22, 53.03, 285.62°)
OKLaboklab(61.88% -0.0115 -0.1453)
OKLCHoklch(61.88% 0.146 265.5)
XYZxyz(25.2113, 23.1430, 71.5311)
Luminance0.2314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B81DD #DDB75B
analogous
#5BC2DD #5B81DD #765BDD
triadic
#5B81DD #DD5B81 #81DD5B
tetradic
#5B81DD #DD5BC2 #DDB75B #5BDD76
square
#5B81DD #DD5BC2 #DDB75B #5BDD76
split-complementary
#5B81DD #DD765B #C2DD5B
monochromatic
#21459D #2B5BD0 #5B81DD #8EA8E8 #C0CFF2

Accessibility & contrast

On white

3.73
#5B81DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#5B81DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B81DD
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B81DD#FFFFFF#000000##000000
##5B81DD1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#598BE1
Deuteranopia (green-blind)
#477FDB
Tritanopia (blue-blind)
#0096A4
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5b81dd;
/* rgb */ color: rgb(91, 129, 221);
/* oklch */ color: oklch(61.9% 0.146 265.5);
Tailwind
colors: {
  custom: {
    50: '#93a5e8',
    500: '#5b81dd',
    950: '#000000',
  },
}
SCSS
$custom: #5b81dd;
$custom-light: #93a5e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b81dd",
  "rgb": {
    "r": 91,
    "g": 129,
    "b": 221
  },
  "hsl": {
    "h": 222.462,
    "s": 65.657,
    "l": 61.176
  },
  "oklch": {
    "l": 0.61884,
    "c": 0.14577,
    "h": 265.5
  },
  "luminance": 0.23145
}

Semantic roles & 50–950 ramp

primary
#5B81DD
secondary
#E2D4B1
accent
#9818CE
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5B81DD

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

Preview Lab → · Contrast checker → · Palette generator →

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