#5B5CDD#5B5CDD

#5B5CDD is a mid, vivid blue. Relative luminance 0.151; OKLCH L 54.7% C 0.192 H 277.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5B5CDD
RGBrgb(91, 92, 221)
HSLhsl(240, 66%, 61%)
HSVhsv(240, 59%, 87%)
CMYKcmyk(58.8%, 58.4%, 0%, 13.3%)
CIE-LABlab(45.77, 36.94, -66.28)
CIE-LCHlch(45.77, 75.87, 299.13°)
OKLaboklab(54.74% 0.0255 -0.1904)
OKLCHoklch(54.74% 0.192 277.6)
XYZxyz(21.1885, 15.0973, 70.1901)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CDD #DDDC5B
analogous
#5B9DDD #5B5CDD #9B5BDD
triadic
#5B5CDD #DD5B5C #5CDD5B
tetradic
#5B5CDD #DD5B9D #DDDC5B #5BDD9B
square
#5B5CDD #DD5B9D #DDDC5B #5BDD9B
split-complementary
#5B5CDD #DD9B5B #9DDD5B
monochromatic
#21229D #2B2CD0 #5B5CDD #8E8EE8 #C0C1F2

Accessibility & contrast

On white

5.22
#5B5CDD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#5B5CDD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CDD
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CDD#FFFFFF#000000##FFFFFF
##5B5CDD1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E1
Deuteranopia (green-blind)
#0067DA
Tritanopia (blue-blind)
#007B94
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b5cdd;
/* rgb */ color: rgb(91, 92, 221);
/* oklch */ color: oklch(54.7% 0.192 277.6);
Tailwind
colors: {
  custom: {
    50: '#958ae8',
    500: '#5b5cdd',
    950: '#000000',
  },
}
SCSS
$custom: #5b5cdd;
$custom-light: #958ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5cdd",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 221
  },
  "hsl": {
    "h": 239.538,
    "s": 65.657,
    "l": 61.176
  },
  "oklch": {
    "l": 0.54739,
    "c": 0.19209,
    "h": 277.6
  },
  "luminance": 0.15099
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B5CDD

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

Preview Lab → · Contrast checker → · Palette generator →

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