#5B4DBD#5B4DBD

#5B4DBD is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.7% C 0.169 H 284.1°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#5B4DBD
RGBrgb(91, 77, 189)
HSLhsl(248, 46%, 52%)
HSVhsv(248, 59%, 74%)
CMYKcmyk(51.9%, 59.3%, 0%, 25.9%)
CIE-LABlab(39.92, 35.89, -57.31)
CIE-LCHlch(39.92, 67.62, 302.06°)
OKLaboklab(49.7% 0.0411 -0.1641)
OKLCHoklch(49.7% 0.169 284.1)
XYZxyz(16.1508, 11.2052, 49.4460)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4DBD #AFBD4D
analogous
#4D77BD #5B4DBD #934DBD
triadic
#5B4DBD #BD5B4D #4DBD5B
tetradic
#5B4DBD #BD4D77 #AFBD4D #4DBD93
square
#5B4DBD #BD4D77 #AFBD4D #4DBD93
split-complementary
#5B4DBD #BD934D #77BD4D
monochromatic
#2F2769 #433795 #5B4DBD #847ACE #ADA6DE

Accessibility & contrast

On white

6.48
#5B4DBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5B4DBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4DBD
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4DBD#FFFFFF#000000##FFFFFF
##5B4DBD1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#005ABB
Tritanopia (blue-blind)
#34677D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5b4dbd;
/* rgb */ color: rgb(91, 77, 189);
/* oklch */ color: oklch(49.7% 0.169 284.1);
Tailwind
colors: {
  custom: {
    50: '#917fd2',
    500: '#5b4dbd',
    950: '#000000',
  },
}
SCSS
$custom: #5b4dbd;
$custom-light: #917fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4dbd",
  "rgb": {
    "r": 91,
    "g": 77,
    "b": 189
  },
  "hsl": {
    "h": 247.5,
    "s": 45.902,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49696,
    "c": 0.16917,
    "h": 284.1
  },
  "luminance": 0.11206
}

Semantic roles & 50–950 ramp

primary
#5B4DBD
secondary
#C5CB9A
accent
#D652C5
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5B4DBD

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

Preview Lab → · Contrast checker → · Palette generator →

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