#5B5CD4#5B5CD4

#5B5CD4 is a mid, vivid blue. Relative luminance 0.146; OKLCH L 54.1% C 0.180 H 278.2°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#5B5CD4
RGBrgb(91, 92, 212)
HSLhsl(240, 58%, 59%)
HSVhsv(240, 57%, 83%)
CMYKcmyk(57.1%, 56.6%, 0%, 16.9%)
CIE-LABlab(45.12, 34.04, -62.19)
CIE-LCHlch(45.12, 70.89, 298.69°)
OKLaboklab(54.06% 0.0256 -0.1784)
OKLCHoklch(54.06% 0.18 278.2)
XYZxyz(20.0214, 14.6305, 64.0435)
Luminance0.1463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CD4 #D4D35B
analogous
#5B99D4 #5B5CD4 #975BD4
triadic
#5B5CD4 #D45B5C #5CD45B
tetradic
#5B5CD4 #D45B99 #D4D35B #5BD497
square
#5B5CD4 #D45B99 #D4D35B #5BD497
split-complementary
#5B5CD4 #D4975B #99D45B
monochromatic
#26268F #3233C0 #5B5CD4 #8B8CE1 #BCBCED

Accessibility & contrast

On white

5.35
#5B5CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#5B5CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CD4
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CD4#FFFFFF#000000##FFFFFF
##5B5CD41.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D8
Deuteranopia (green-blind)
#0066D2
Tritanopia (blue-blind)
#11788F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b5cd4;
/* rgb */ color: rgb(91, 92, 212);
/* oklch */ color: oklch(54.1% 0.180 278.2);
Tailwind
colors: {
  custom: {
    50: '#948ae2',
    500: '#5b5cd4',
    950: '#000000',
  },
}
SCSS
$custom: #5b5cd4;
$custom-light: #948ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5cd4",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 212
  },
  "hsl": {
    "h": 239.504,
    "s": 58.454,
    "l": 59.412
  },
  "oklch": {
    "l": 0.54059,
    "c": 0.18018,
    "h": 278.2
  },
  "luminance": 0.14632
}

Semantic roles & 50–950 ramp

primary
#5B5CD4
secondary
#DDDDAE
accent
#E046E2
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5B5CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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