#5B5BDD#5B5BDD

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

Color values

HEX#5B5BDD
RGBrgb(91, 91, 221)
HSLhsl(240, 66%, 61%)
HSVhsv(240, 59%, 87%)
CMYKcmyk(58.8%, 58.8%, 0%, 13.3%)
CIE-LABlab(45.53, 37.54, -66.66)
CIE-LCHlch(45.53, 76.50, 299.39°)
OKLaboklab(54.57% 0.0265 -0.1915)
OKLCHoklch(54.57% 0.193 277.9)
XYZxyz(21.1024, 14.9252, 70.1614)
Luminance0.1493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BDD #DDDD5B
analogous
#5B9CDD #5B5BDD #9C5BDD
triadic
#5B5BDD #DD5B5B #5BDD5B
tetradic
#5B5BDD #DD5B9C #DDDD5B #5BDD9C
square
#5B5BDD #DD5B9C #DDDD5B #5BDD9C
split-complementary
#5B5BDD #DD9C5B #9CDD5B
monochromatic
#21219D #2B2BD0 #5B5BDD #8E8EE8 #C0C0F2

Accessibility & contrast

On white

5.27
#5B5BDD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#5B5BDD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5BDD
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5BDD#FFFFFF#000000##FFFFFF
##5B5BDD1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b5bdd;
/* rgb */ color: rgb(91, 91, 221);
/* oklch */ color: oklch(54.6% 0.193 277.9);
Tailwind
colors: {
  custom: {
    50: '#9589e8',
    500: '#5b5bdd',
    950: '#000000',
  },
}
SCSS
$custom: #5b5bdd;
$custom-light: #9589e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5bdd",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 221
  },
  "hsl": {
    "h": 240,
    "s": 65.657,
    "l": 61.176
  },
  "oklch": {
    "l": 0.54565,
    "c": 0.19334,
    "h": 277.9
  },
  "luminance": 0.14927
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B5BDD

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

Preview Lab → · Contrast checker → · Palette generator →

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