#5B5CD2#5B5CD2

#5B5CD2 is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.9% C 0.177 H 278.3°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5B5CD2
RGBrgb(91, 92, 210)
HSLhsl(239, 57%, 59%)
HSVhsv(239, 57%, 82%)
CMYKcmyk(56.7%, 56.2%, 0%, 17.6%)
CIE-LABlab(44.98, 33.39, -61.27)
CIE-LCHlch(44.98, 69.78, 298.59°)
OKLaboklab(53.91% 0.0255 -0.1757)
OKLCHoklch(53.91% 0.178 278.3)
XYZxyz(19.7707, 14.5302, 62.7231)
Luminance0.1453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CD2 #D2D15B
analogous
#5B98D2 #5B5CD2 #965BD2
triadic
#5B5CD2 #D25B5C #5CD25B
tetradic
#5B5CD2 #D25B98 #D2D15B #5BD296
square
#5B5CD2 #D25B98 #D2D15B #5BD296
split-complementary
#5B5CD2 #D2965B #98D25B
monochromatic
#26278C #3435BC #5B5CD2 #8B8CDF #BBBBEC

Accessibility & contrast

On white

5.38
#5B5CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5B5CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CD2
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CD2#FFFFFF#000000##FFFFFF
##5B5CD21.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD6
Deuteranopia (green-blind)
#0066D0
Tritanopia (blue-blind)
#16788E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5b5cd2;
/* rgb */ color: rgb(91, 92, 210);
/* oklch */ color: oklch(53.9% 0.177 278.3);
Tailwind
colors: {
  custom: {
    50: '#938ae1',
    500: '#5b5cd2',
    950: '#000000',
  },
}
SCSS
$custom: #5b5cd2;
$custom-light: #938ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5cd2",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 210
  },
  "hsl": {
    "h": 239.496,
    "s": 56.938,
    "l": 59.02
  },
  "oklch": {
    "l": 0.53911,
    "c": 0.1775,
    "h": 278.3
  },
  "luminance": 0.14532
}

Semantic roles & 50–950 ramp

primary
#5B5CD2
secondary
#DCDBAD
accent
#DF48E0
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5B5CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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