#5B5AAA#5B5AAA

#5B5AAA is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.8% C 0.124 H 281.6°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#5B5AAA
RGBrgb(91, 90, 170)
HSLhsl(241, 32%, 51%)
HSVhsv(241, 47%, 67%)
CMYKcmyk(46.5%, 47.1%, 0%, 33.3%)
CIE-LABlab(41.90, 21.95, -42.95)
CIE-LCHlch(41.90, 48.24, 297.07°)
OKLaboklab(50.78% 0.025 -0.1218)
OKLCHoklch(50.78% 0.124 281.6)
XYZxyz(15.2241, 12.4380, 39.6210)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5AAA #A9AA5A
analogous
#5A81AA #5B5AAA #835AAA
triadic
#5B5AAA #AA5B5A #5AAA5B
tetradic
#5B5AAA #AA5A81 #A9AA5A #5AAA83
square
#5B5AAA #AA5A81 #A9AA5A #5AAA83
split-complementary
#5B5AAA #AA835A #81AA5A
monochromatic
#2F2F5B #444483 #5B5AAA #8382BF #ABABD4

Accessibility & contrast

On white

6.02
#5B5AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#5B5AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5AAA
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5AAA#FFFFFF#000000##FFFFFF
##5B5AAA1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3966AD
Deuteranopia (green-blind)
#3460A8
Tritanopia (blue-blind)
#406B7A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b5aaa;
/* rgb */ color: rgb(91, 90, 170);
/* oklch */ color: oklch(50.8% 0.124 281.6);
Tailwind
colors: {
  custom: {
    50: '#8e88c4',
    500: '#5b5aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5b5aaa;
$custom-light: #8e88c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5aaa",
  "rgb": {
    "r": 91,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 240.75,
    "s": 32,
    "l": 50.98
  },
  "oklch": {
    "l": 0.50777,
    "c": 0.12437,
    "h": 281.6
  },
  "luminance": 0.12439
}

Semantic roles & 50–950 ramp

primary
#5B5AAA
secondary
#C1C29E
accent
#C860C7
background
#F9F8FC
surface
#F1EFF8
border
#CBCAD1
text
#0D0B12
muted
#7E7C81

Preview Lab

Preview with #5B5AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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