#5B5CDC#5B5CDC

#5B5CDC is a mid, vivid blue. Relative luminance 0.150; OKLCH L 54.7% C 0.191 H 277.7°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#5B5CDC
RGBrgb(91, 92, 220)
HSLhsl(240, 65%, 61%)
HSVhsv(240, 59%, 86%)
CMYKcmyk(58.6%, 58.2%, 0%, 13.7%)
CIE-LABlab(45.69, 36.61, -65.82)
CIE-LCHlch(45.69, 75.32, 299.08°)
OKLaboklab(54.66% 0.0255 -0.1891)
OKLCHoklch(54.66% 0.191 277.7)
XYZxyz(21.0557, 15.0442, 69.4905)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CDC #DCDB5B
analogous
#5B9CDC #5B5CDC #9A5BDC
triadic
#5B5CDC #DC5B5C #5CDC5B
tetradic
#5B5CDC #DC5B9C #DCDB5B #5BDC9A
square
#5B5CDC #DC5B9C #DCDB5B #5BDC9A
split-complementary
#5B5CDC #DC9A5B #9CDC5B
monochromatic
#21229B #2C2DCE #5B5CDC #8D8EE7 #C0C0F2

Accessibility & contrast

On white

5.24
#5B5CDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#5B5CDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CDC
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CDC#FFFFFF#000000##FFFFFF
##5B5CDC1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#0067D9
Tritanopia (blue-blind)
#007B93
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b5cdc;
/* rgb */ color: rgb(91, 92, 220);
/* oklch */ color: oklch(54.7% 0.191 277.7);
Tailwind
colors: {
  custom: {
    50: '#958ae8',
    500: '#5b5cdc',
    950: '#000000',
  },
}
SCSS
$custom: #5b5cdc;
$custom-light: #958ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5cdc",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 220
  },
  "hsl": {
    "h": 239.535,
    "s": 64.824,
    "l": 60.98
  },
  "oklch": {
    "l": 0.54663,
    "c": 0.19078,
    "h": 277.7
  },
  "luminance": 0.15046
}

Semantic roles & 50–950 ramp

primary
#5B5CDC
secondary
#E2E1B1
accent
#CB19CD
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5B5CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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