#5B4DB2#5B4DB2

#5B4DB2 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.9% C 0.154 H 285.5°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#5B4DB2
RGBrgb(91, 77, 178)
HSLhsl(248, 40%, 50%)
HSVhsv(248, 57%, 70%)
CMYKcmyk(48.9%, 56.7%, 0%, 30.2%)
CIE-LABlab(39.15, 32.50, -52.10)
CIE-LCHlch(39.15, 61.41, 301.96°)
OKLaboklab(48.88% 0.0412 -0.1488)
OKLCHoklch(48.88% 0.154 285.5)
XYZxyz(15.0018, 10.7455, 43.3945)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4DB2 #A4B24D
analogous
#4D71B2 #5B4DB2 #8E4DB2
triadic
#5B4DB2 #B25B4D #4DB25B
tetradic
#5B4DB2 #B24D71 #A4B24D #4DB28E
square
#5B4DB2 #B24D71 #A4B24D #4DB28E
split-complementary
#5B4DB2 #B28E4D #71B24D
monochromatic
#2F285D #453B87 #5B4DB2 #8278C4 #AAA2D7

Accessibility & contrast

On white

6.67
#5B4DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5B4DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4DB2
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4DB2#FFFFFF#000000##FFFFFF
##5B4DB21.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#095FB5
Deuteranopia (green-blind)
#0359B0
Tritanopia (blue-blind)
#3D6478
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5b4db2;
/* rgb */ color: rgb(91, 77, 178);
/* oklch */ color: oklch(48.9% 0.154 285.5);
Tailwind
colors: {
  custom: {
    50: '#907fca',
    500: '#5b4db2',
    950: '#000000',
  },
}
SCSS
$custom: #5b4db2;
$custom-light: #907fca;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4db2",
  "rgb": {
    "r": 91,
    "g": 77,
    "b": 178
  },
  "hsl": {
    "h": 248.317,
    "s": 39.608,
    "l": 50
  },
  "oklch": {
    "l": 0.48878,
    "c": 0.15439,
    "h": 285.5
  },
  "luminance": 0.10746
}

Semantic roles & 50–950 ramp

primary
#5B4DB2
secondary
#BEC497
accent
#CF58BF
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5B4DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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