#5B4EAA#5B4EAA

#5B4EAA is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.5% C 0.142 H 286.3°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5B4EAA
RGBrgb(91, 78, 170)
HSLhsl(248, 37%, 49%)
HSVhsv(248, 54%, 67%)
CMYKcmyk(46.5%, 54.1%, 0%, 33.3%)
CIE-LABlab(38.85, 29.44, -47.83)
CIE-LCHlch(38.85, 56.17, 301.61°)
OKLaboklab(48.49% 0.0398 -0.1362)
OKLCHoklch(48.49% 0.142 286.3)
XYZxyz(14.2924, 10.5746, 39.3104)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4EAA #9DAA4E
analogous
#4E6FAA #5B4EAA #894EAA
triadic
#5B4EAA #AA5B4E #4EAA5B
tetradic
#5B4EAA #AA4E6F #9DAA4E #4EAA89
square
#5B4EAA #AA4E6F #9DAA4E #4EAA89
split-complementary
#5B4EAA #AA894E #6FAA4E
monochromatic
#2E2856 #453B80 #5B4EAA #8075C0 #A79FD3

Accessibility & contrast

On white

6.74
#5B4EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5B4EAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4EAA
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4EAA#FFFFFF#000000##FFFFFF
##5B4EAA1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5EAD
Deuteranopia (green-blind)
#1D59A8
Tritanopia (blue-blind)
#416274
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b4eaa;
/* rgb */ color: rgb(91, 78, 170);
/* oklch */ color: oklch(48.5% 0.142 286.3);
Tailwind
colors: {
  custom: {
    50: '#8f80c4',
    500: '#5b4eaa',
    950: '#000000',
  },
}
SCSS
$custom: #5b4eaa;
$custom-light: #8f80c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4eaa",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 170
  },
  "hsl": {
    "h": 248.478,
    "s": 37.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.48488,
    "c": 0.14195,
    "h": 286.3
  },
  "luminance": 0.10575
}

Semantic roles & 50–950 ramp

primary
#5B4EAA
secondary
#BAC094
accent
#CD5BBD
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5B4EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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