#5B5BD4#5B5BD4

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

Color values

HEX#5B5BD4
RGBrgb(91, 91, 212)
HSLhsl(240, 58%, 59%)
HSVhsv(240, 57%, 83%)
CMYKcmyk(57.1%, 57.1%, 0%, 16.9%)
CIE-LABlab(44.88, 34.65, -62.58)
CIE-LCHlch(44.88, 71.53, 298.97°)
OKLaboklab(53.88% 0.0265 -0.1795)
OKLCHoklch(53.88% 0.181 278.4)
XYZxyz(19.9354, 14.4584, 64.0148)
Luminance0.1446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BD4 #D4D45B
analogous
#5B98D4 #5B5BD4 #985BD4
triadic
#5B5BD4 #D45B5B #5BD45B
tetradic
#5B5BD4 #D45B98 #D4D45B #5BD498
square
#5B5BD4 #D45B98 #D4D45B #5BD498
split-complementary
#5B5BD4 #D4985B #98D45B
monochromatic
#26268F #3232C0 #5B5BD4 #8B8BE1 #BCBCED

Accessibility & contrast

On white

5.40
#5B5BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#5B5BD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5BD4
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5BD4#FFFFFF#000000##FFFFFF
##5B5BD41.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD8
Deuteranopia (green-blind)
#0065D2
Tritanopia (blue-blind)
#11788F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5b5bd4;
/* rgb */ color: rgb(91, 91, 212);
/* oklch */ color: oklch(53.9% 0.181 278.4);
Tailwind
colors: {
  custom: {
    50: '#9489e2',
    500: '#5b5bd4',
    950: '#000000',
  },
}
SCSS
$custom: #5b5bd4;
$custom-light: #9489e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5bd4",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 212
  },
  "hsl": {
    "h": 240,
    "s": 58.454,
    "l": 59.412
  },
  "oklch": {
    "l": 0.53881,
    "c": 0.18147,
    "h": 278.4
  },
  "luminance": 0.1446
}

Semantic roles & 50–950 ramp

primary
#5B5BD4
secondary
#DDDDAE
accent
#E246E2
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5B5BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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