#5B4FCB#5B4FCB

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

Color values

HEX#5B4FCB
RGBrgb(91, 79, 203)
HSLhsl(246, 54%, 55%)
HSVhsv(246, 61%, 80%)
CMYKcmyk(55.2%, 61.1%, 0%, 20.4%)
CIE-LABlab(41.42, 39.04, -63.03)
CIE-LCHlch(41.42, 74.14, 301.78°)
OKLaboklab(51.12% 0.0385 -0.1809)
OKLCHoklch(51.12% 0.185 282)
XYZxyz(17.8865, 12.1268, 57.8865)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FCB #BFCB4F
analogous
#4F81CB #5B4FCB #994FCB
triadic
#5B4FCB #CB5B4F #4FCB5B
tetradic
#5B4FCB #CB4F81 #BFCB4F #4FCB99
square
#5B4FCB #CB4F81 #BFCB4F #4FCB99
split-complementary
#5B4FCB #CB994F #81CB4F
monochromatic
#2D247B #3E32AA #5B4FCB #877ED9 #B3ADE7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B4FCB#FFFFFF#000000##FFFFFF
##5B4FCB1.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)
#0066CF
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#256D85
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5b4fcb;
/* rgb */ color: rgb(91, 79, 203);
/* oklch */ color: oklch(51.1% 0.185 282.0);
Tailwind
colors: {
  custom: {
    50: '#9381dc',
    500: '#5b4fcb',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fcb;
$custom-light: #9381dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fcb",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 203
  },
  "hsl": {
    "h": 245.806,
    "s": 54.386,
    "l": 55.294
  },
  "oklch": {
    "l": 0.51118,
    "c": 0.18496,
    "h": 282
  },
  "luminance": 0.12128
}

Semantic roles & 50–950 ramp

primary
#5B4FCB
secondary
#D0D5A1
accent
#DE4ACF
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B4FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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