#5B5DD5#5B5DD5

#5B5DD5 is a mid, vivid blue. Relative luminance 0.149; OKLCH L 54.3% C 0.180 H 277.8°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#5B5DD5
RGBrgb(91, 93, 213)
HSLhsl(239, 59%, 60%)
HSVhsv(239, 57%, 84%)
CMYKcmyk(57.3%, 56.3%, 0%, 16.5%)
CIE-LABlab(45.44, 33.75, -62.25)
CIE-LCHlch(45.44, 70.81, 298.46°)
OKLaboklab(54.31% 0.0246 -0.1785)
OKLCHoklch(54.31% 0.18 277.8)
XYZxyz(20.2351, 14.8555, 64.7390)
Luminance0.1486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5DD5 #D5D35B
analogous
#5B9AD5 #5B5DD5 #965BD5
triadic
#5B5DD5 #D55B5D #5DD55B
tetradic
#5B5DD5 #D55B9A #D5D35B #5BD596
square
#5B5DD5 #D55B9A #D5D35B #5BD596
split-complementary
#5B5DD5 #D5965B #9AD55B
monochromatic
#252791 #3234C1 #5B5DD5 #8C8DE1 #BCBDEE

Accessibility & contrast

On white

5.29
#5B5DD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#5B5DD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5DD5
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5DD5#FFFFFF#000000##FFFFFF
##5B5DD51.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071D9
Deuteranopia (green-blind)
#0067D3
Tritanopia (blue-blind)
#0D7990
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b5dd5;
/* rgb */ color: rgb(91, 93, 213);
/* oklch */ color: oklch(54.3% 0.180 277.8);
Tailwind
colors: {
  custom: {
    50: '#948be3',
    500: '#5b5dd5',
    950: '#000000',
  },
}
SCSS
$custom: #5b5dd5;
$custom-light: #948be3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5dd5",
  "rgb": {
    "r": 91,
    "g": 93,
    "b": 213
  },
  "hsl": {
    "h": 239.016,
    "s": 59.223,
    "l": 59.608
  },
  "oklch": {
    "l": 0.54313,
    "c": 0.18023,
    "h": 277.8
  },
  "luminance": 0.14857
}

Semantic roles & 50–950 ramp

primary
#5B5DD5
secondary
#DEDDAE
accent
#E045E2
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C15
muted
#7E7D84

Preview Lab

Preview with #5B5DD5

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

Preview Lab → · Contrast checker → · Palette generator →

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