#5B5DDD#5B5DDD

#5B5DDD is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.9% C 0.191 H 277.4°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#5B5DDD
RGBrgb(91, 93, 221)
HSLhsl(239, 66%, 61%)
HSVhsv(239, 59%, 87%)
CMYKcmyk(58.8%, 57.9%, 0%, 13.3%)
CIE-LABlab(46.00, 36.33, -65.89)
CIE-LCHlch(46.00, 75.24, 298.87°)
OKLaboklab(54.91% 0.0246 -0.1892)
OKLCHoklch(54.91% 0.191 277.4)
XYZxyz(21.2757, 15.2717, 70.2192)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5DDD #DDDB5B
analogous
#5B9EDD #5B5DDD #9A5BDD
triadic
#5B5DDD #DD5B5D #5DDD5B
tetradic
#5B5DDD #DD5B9E #DDDB5B #5BDD9A
square
#5B5DDD #DD5B9E #DDDB5B #5BDD9A
split-complementary
#5B5DDD #DD9A5B #9EDD5B
monochromatic
#21229D #2B2ED0 #5B5DDD #8E8FE8 #C0C1F2

Accessibility & contrast

On white

5.18
#5B5DDD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#5B5DDD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5DDD
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5DDD#FFFFFF#000000##FFFFFF
##5B5DDD1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E1
Deuteranopia (green-blind)
#0068DA
Tritanopia (blue-blind)
#007C94
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5b5ddd;
/* rgb */ color: rgb(91, 93, 221);
/* oklch */ color: oklch(54.9% 0.191 277.4);
Tailwind
colors: {
  custom: {
    50: '#958be8',
    500: '#5b5ddd',
    950: '#000000',
  },
}
SCSS
$custom: #5b5ddd;
$custom-light: #958be8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5ddd",
  "rgb": {
    "r": 91,
    "g": 93,
    "b": 221
  },
  "hsl": {
    "h": 239.077,
    "s": 65.657,
    "l": 61.176
  },
  "oklch": {
    "l": 0.54914,
    "c": 0.19084,
    "h": 277.4
  },
  "luminance": 0.15273
}

Semantic roles & 50–950 ramp

primary
#5B5DDD
secondary
#E2E2B1
accent
#CB18CE
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5B5DDD

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

Preview Lab → · Contrast checker → · Palette generator →

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