#5B5BB7#5B5BB7

#5B5BB7 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.8% C 0.142 H 280.3°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#5B5BB7
RGBrgb(91, 91, 183)
HSLhsl(240, 39%, 54%)
HSVhsv(240, 50%, 72%)
CMYKcmyk(50.3%, 50.3%, 0%, 28.2%)
CIE-LABlab(42.95, 25.39, -48.92)
CIE-LCHlch(42.95, 55.12, 297.43°)
OKLaboklab(51.82% 0.0252 -0.1393)
OKLCHoklch(51.82% 0.142 280.3)
XYZxyz(16.6001, 13.1243, 46.4491)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BB7 #B7B75B
analogous
#5B89B7 #5B5BB7 #895BB7
triadic
#5B5BB7 #B75B5B #5BB75B
tetradic
#5B5BB7 #B75B89 #B7B75B #5BB789
square
#5B5BB7 #B75B89 #B7B75B #5BB789
split-complementary
#5B5BB7 #B7895B #89B75B
monochromatic
#2E2E69 #414194 #5B5BB7 #8686CA #B0B0DC

Accessibility & contrast

On white

5.79
#5B5BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#5B5BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5BB7
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5BB7#FFFFFF#000000##FFFFFF
##5B5BB71.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3069BA
Deuteranopia (green-blind)
#2762B5
Tritanopia (blue-blind)
#376F80
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5b5bb7;
/* rgb */ color: rgb(91, 91, 183);
/* oklch */ color: oklch(51.8% 0.142 280.3);
Tailwind
colors: {
  custom: {
    50: '#9089cd',
    500: '#5b5bb7',
    950: '#000000',
  },
}
SCSS
$custom: #5b5bb7;
$custom-light: #9089cd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5bb7",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 183
  },
  "hsl": {
    "h": 240,
    "s": 38.983,
    "l": 53.725
  },
  "oklch": {
    "l": 0.5182,
    "c": 0.14161,
    "h": 280.3
  },
  "luminance": 0.13125
}

Semantic roles & 50–950 ramp

primary
#5B5BB7
secondary
#CBCBA3
accent
#CF59CF
background
#F9F8FC
surface
#F1F0F9
border
#CBCBD2
text
#0D0B13
muted
#7E7C82

Preview Lab

Preview with #5B5BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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