#5B5CD9#5B5CD9

#5B5CD9 is a mid, vivid blue. Relative luminance 0.149; OKLCH L 54.4% C 0.187 H 277.9°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#5B5CD9
RGBrgb(91, 92, 217)
HSLhsl(240, 62%, 60%)
HSVhsv(240, 58%, 85%)
CMYKcmyk(58.1%, 57.6%, 0%, 14.9%)
CIE-LABlab(45.48, 35.65, -64.47)
CIE-LCHlch(45.48, 73.67, 298.94°)
OKLaboklab(54.44% 0.0256 -0.1851)
OKLCHoklch(54.44% 0.187 277.9)
XYZxyz(20.6619, 14.8867, 67.4168)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CD9 #D9D85B
analogous
#5B9BD9 #5B5CD9 #995BD9
triadic
#5B5CD9 #D95B5C #5CD95B
tetradic
#5B5CD9 #D95B9B #D9D85B #5BD999
square
#5B5CD9 #D95B9B #D9D85B #5BD999
split-complementary
#5B5CD9 #D9995B #9BD95B
monochromatic
#232497 #2E30C8 #5B5CD9 #8D8DE5 #BEBFF0

Accessibility & contrast

On white

5.28
#5B5CD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#5B5CD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CD9
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CD9#FFFFFF#000000##FFFFFF
##5B5CD91.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DD
Deuteranopia (green-blind)
#0066D6
Tritanopia (blue-blind)
#007A92
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b5cd9;
/* rgb */ color: rgb(91, 92, 217);
/* oklch */ color: oklch(54.4% 0.187 277.9);
Tailwind
colors: {
  custom: {
    50: '#948ae6',
    500: '#5b5cd9',
    950: '#000000',
  },
}
SCSS
$custom: #5b5cd9;
$custom-light: #948ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5cd9",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 217
  },
  "hsl": {
    "h": 239.524,
    "s": 62.376,
    "l": 60.392
  },
  "oklch": {
    "l": 0.54435,
    "c": 0.18683,
    "h": 277.9
  },
  "luminance": 0.14888
}

Semantic roles & 50–950 ramp

primary
#5B5CD9
secondary
#E0E0B0
accent
#C91BCA
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5B5CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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