#5B5DDB#5B5DDB

#5B5DDB is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.8% C 0.188 H 277.5°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#5B5DDB
RGBrgb(91, 93, 219)
HSLhsl(239, 64%, 61%)
HSVhsv(239, 58%, 86%)
CMYKcmyk(58.4%, 57.5%, 0%, 14.1%)
CIE-LABlab(45.86, 35.68, -64.99)
CIE-LCHlch(45.86, 74.14, 298.77°)
OKLaboklab(54.76% 0.0246 -0.1866)
OKLCHoklch(54.76% 0.188 277.5)
XYZxyz(21.0108, 15.1658, 68.8242)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5DDB #DBD95B
analogous
#5B9DDB #5B5DDB #995BDB
triadic
#5B5DDB #DB5B5D #5DDB5B
tetradic
#5B5DDB #DB5B9D #DBD95B #5BDB99
square
#5B5DDB #DB5B9D #DBD95B #5BDB99
split-complementary
#5B5DDB #DB995B #9DDB5B
monochromatic
#22249A #2D2FCC #5B5DDB #8D8FE6 #BFC0F1

Accessibility & contrast

On white

5.21
#5B5DDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#5B5DDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5DDB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5DDB#FFFFFF#000000##FFFFFF
##5B5DDB1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#0067D8
Tritanopia (blue-blind)
#007B93
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5b5ddb;
/* rgb */ color: rgb(91, 93, 219);
/* oklch */ color: oklch(54.8% 0.188 277.5);
Tailwind
colors: {
  custom: {
    50: '#958be7',
    500: '#5b5ddb',
    950: '#000000',
  },
}
SCSS
$custom: #5b5ddb;
$custom-light: #958be7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5ddb",
  "rgb": {
    "r": 91,
    "g": 93,
    "b": 219
  },
  "hsl": {
    "h": 239.063,
    "s": 64,
    "l": 60.784
  },
  "oklch": {
    "l": 0.54763,
    "c": 0.1882,
    "h": 277.5
  },
  "luminance": 0.15167
}

Semantic roles & 50–950 ramp

primary
#5B5DDB
secondary
#E1E0B1
accent
#C91ACC
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5B5DDB

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

Preview Lab → · Contrast checker → · Palette generator →

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