#5B4DD1#5B4DD1

#5B4DD1 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.3% C 0.195 H 281.8°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#5B4DD1
RGBrgb(91, 77, 209)
HSLhsl(246, 59%, 56%)
HSVhsv(246, 63%, 82%)
CMYKcmyk(56.5%, 63.2%, 0%, 18%)
CIE-LABlab(41.43, 42.09, -66.47)
CIE-LCHlch(41.43, 78.67, 302.34°)
OKLaboklab(51.27% 0.04 -0.191)
OKLCHoklch(51.27% 0.195 281.8)
XYZxyz(18.4733, 12.1342, 61.6779)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4DD1 #C3D14D
analogous
#4D81D1 #5B4DD1 #9D4DD1
triadic
#5B4DD1 #D15B4D #4DD15B
tetradic
#5B4DD1 #D14D81 #C3D14D #4DD19D
square
#5B4DD1 #D14D81 #C3D14D #4DD19D
split-complementary
#5B4DD1 #D19D4D #81D14D
monochromatic
#2C2282 #3C2EB3 #5B4DD1 #887EDE #B5AEEA

Accessibility & contrast

On white

6.13
#5B4DD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5B4DD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4DD1
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4DD1#FFFFFF#000000##FFFFFF
##5B4DD11.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D5
Deuteranopia (green-blind)
#005DCE
Tritanopia (blue-blind)
#1C6E88
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5b4dd1;
/* rgb */ color: rgb(91, 77, 209);
/* oklch */ color: oklch(51.3% 0.195 281.8);
Tailwind
colors: {
  custom: {
    50: '#9480e0',
    500: '#5b4dd1',
    950: '#000000',
  },
}
SCSS
$custom: #5b4dd1;
$custom-light: #9480e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4dd1",
  "rgb": {
    "r": 91,
    "g": 77,
    "b": 209
  },
  "hsl": {
    "h": 246.364,
    "s": 58.929,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5127,
    "c": 0.19518,
    "h": 281.8
  },
  "luminance": 0.12135
}

Semantic roles & 50–950 ramp

primary
#5B4DD1
secondary
#D2D8A2
accent
#E246D2
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B4DD1

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

Preview Lab → · Contrast checker → · Palette generator →

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