#5B5BDC#5B5BDC

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

Color values

HEX#5B5BDC
RGBrgb(91, 91, 220)
HSLhsl(240, 65%, 61%)
HSVhsv(240, 59%, 86%)
CMYKcmyk(58.6%, 58.6%, 0%, 13.7%)
CIE-LABlab(45.46, 37.22, -66.21)
CIE-LCHlch(45.46, 75.95, 299.34°)
OKLaboklab(54.49% 0.0265 -0.1902)
OKLCHoklch(54.49% 0.192 277.9)
XYZxyz(20.9696, 14.8721, 69.4619)
Luminance0.1487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BDC #DCDC5B
analogous
#5B9BDC #5B5BDC #9B5BDC
triadic
#5B5BDC #DC5B5B #5BDC5B
tetradic
#5B5BDC #DC5B9B #DCDC5B #5BDC9B
square
#5B5BDC #DC5B9B #DCDC5B #5BDC9B
split-complementary
#5B5BDC #DC9B5B #9BDC5B
monochromatic
#21219B #2C2CCE #5B5BDC #8D8DE7 #C0C0F2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B5BDC#FFFFFF#000000##FFFFFF
##5B5BDC1.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E0
Deuteranopia (green-blind)
#0066D9
Tritanopia (blue-blind)
#007A93
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b5bdc;
/* rgb */ color: rgb(91, 91, 220);
/* oklch */ color: oklch(54.5% 0.192 277.9);
Tailwind
colors: {
  custom: {
    50: '#9589e8',
    500: '#5b5bdc',
    950: '#000000',
  },
}
SCSS
$custom: #5b5bdc;
$custom-light: #9589e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5bdc",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 220
  },
  "hsl": {
    "h": 240,
    "s": 64.824,
    "l": 60.98
  },
  "oklch": {
    "l": 0.54488,
    "c": 0.19203,
    "h": 277.9
  },
  "luminance": 0.14874
}

Semantic roles & 50–950 ramp

primary
#5B5BDC
secondary
#E2E2B1
accent
#CD19CD
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5B5BDC

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

Preview Lab → · Contrast checker → · Palette generator →

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