#5B5CA5#5B5CA5

#5B5CA5 is a mid, moderate blue. Relative luminance 0.126; OKLCH L 50.9% C 0.114 H 280.9°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#5B5CA5
RGBrgb(91, 92, 165)
HSLhsl(239, 29%, 50%)
HSVhsv(239, 45%, 65%)
CMYKcmyk(44.8%, 44.2%, 0%, 35.3%)
CIE-LABlab(42.15, 19.16, -39.61)
CIE-LCHlch(42.15, 44.00, 295.81°)
OKLaboklab(50.87% 0.0217 -0.112)
OKLCHoklch(50.87% 0.114 280.9)
XYZxyz(14.9310, 12.5944, 37.2342)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CA5 #A5A45B
analogous
#5B81A5 #5B5CA5 #7F5BA5
triadic
#5B5CA5 #A55B5C #5CA55B
tetradic
#5B5CA5 #A55B81 #A5A45B #5BA57F
square
#5B5CA5 #A55B81 #A5A45B #5BA57F
split-complementary
#5B5CA5 #A57F5B #81A55B
monochromatic
#2F3056 #45467E #5B5CA5 #8383BB #AAABD0

Accessibility & contrast

On white

5.97
#5B5CA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5B5CA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CA5
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CA5#FFFFFF#000000##FFFFFF
##5B5CA51.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4066A8
Deuteranopia (green-blind)
#3C61A3
Tritanopia (blue-blind)
#436B78
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b5ca5;
/* rgb */ color: rgb(91, 92, 165);
/* oklch */ color: oklch(50.9% 0.114 280.9);
Tailwind
colors: {
  custom: {
    50: '#8d8ac0',
    500: '#5b5ca5',
    950: '#000000',
  },
}
SCSS
$custom: #5b5ca5;
$custom-light: #8d8ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5ca5",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 165
  },
  "hsl": {
    "h": 239.189,
    "s": 29.134,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50867,
    "c": 0.11411,
    "h": 280.9
  },
  "luminance": 0.12595
}

Semantic roles & 50–950 ramp

primary
#5B5CA5
secondary
#BEBE9D
accent
#C462C5
background
#F8F8FB
surface
#F0F0F7
border
#CBCBD0
text
#0C0B12
muted
#7D7C81

Preview Lab

Preview with #5B5CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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