#5B4DCF#5B4DCF

#5B4DCF is a mid, vivid blue. Relative luminance 0.120; OKLCH L 51.1% C 0.193 H 282.0°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#5B4DCF
RGBrgb(91, 77, 207)
HSLhsl(246, 58%, 56%)
HSVhsv(246, 63%, 81%)
CMYKcmyk(56%, 62.8%, 0%, 18.8%)
CIE-LABlab(41.27, 41.47, -65.57)
CIE-LCHlch(41.27, 77.58, 302.31°)
OKLaboklab(51.11% 0.0401 -0.1884)
OKLCHoklch(51.11% 0.193 282)
XYZxyz(18.2273, 12.0357, 60.3820)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4DCF #C1CF4D
analogous
#4D80CF #5B4DCF #9C4DCF
triadic
#5B4DCF #CF5B4D #4DCF5B
tetradic
#5B4DCF #CF4D80 #C1CF4D #4DCF9C
square
#5B4DCF #CF4D80 #C1CF4D #4DCF9C
split-complementary
#5B4DCF #CF9C4D #80CF4D
monochromatic
#2C227F #3D2FAF #5B4DCF #877DDC #B4ADE9

Accessibility & contrast

On white

6.16
#5B4DCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#5B4DCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4DCF
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4DCF#FFFFFF#000000##FFFFFF
##5B4DCF1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D3
Deuteranopia (green-blind)
#005DCC
Tritanopia (blue-blind)
#206D87
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5b4dcf;
/* rgb */ color: rgb(91, 77, 207);
/* oklch */ color: oklch(51.1% 0.193 282.0);
Tailwind
colors: {
  custom: {
    50: '#9480df',
    500: '#5b4dcf',
    950: '#000000',
  },
}
SCSS
$custom: #5b4dcf;
$custom-light: #9480df;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4dcf",
  "rgb": {
    "r": 91,
    "g": 77,
    "b": 207
  },
  "hsl": {
    "h": 246.462,
    "s": 57.522,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51108,
    "c": 0.19263,
    "h": 282
  },
  "luminance": 0.12037
}

Semantic roles & 50–950 ramp

primary
#5B4DCF
secondary
#D1D7A1
accent
#E147D0
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B4DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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