#5B4FBE#5B4FBE

#5B4FBE is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.1% C 0.168 H 283.4°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#5B4FBE
RGBrgb(91, 79, 190)
HSLhsl(246, 46%, 53%)
HSVhsv(246, 58%, 75%)
CMYKcmyk(52.1%, 58.4%, 0%, 25.5%)
CIE-LABlab(40.46, 34.99, -57.02)
CIE-LCHlch(40.46, 66.90, 301.54°)
OKLaboklab(50.12% 0.039 -0.1632)
OKLCHoklch(50.12% 0.168 283.4)
XYZxyz(16.4018, 11.5329, 50.0670)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FBE #B2BE4F
analogous
#4F7BBE #5B4FBE #924FBE
triadic
#5B4FBE #BE5B4F #4FBE5B
tetradic
#5B4FBE #BE4F7B #B2BE4F #4FBE92
square
#5B4FBE #BE4F7B #B2BE4F #4FBE92
split-complementary
#5B4FBE #BE924F #7BBE4F
monochromatic
#2F286B #423898 #5B4FBE #857CCF #AEA8DF

Accessibility & contrast

On white

6.35
#5B4FBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5B4FBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FBE
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FBE#FFFFFF#000000##FFFFFF
##5B4FBE1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C2
Deuteranopia (green-blind)
#005CBC
Tritanopia (blue-blind)
#33697F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5b4fbe;
/* rgb */ color: rgb(91, 79, 190);
/* oklch */ color: oklch(50.1% 0.168 283.4);
Tailwind
colors: {
  custom: {
    50: '#9181d2',
    500: '#5b4fbe',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fbe;
$custom-light: #9181d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fbe",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 190
  },
  "hsl": {
    "h": 246.486,
    "s": 46.058,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50117,
    "c": 0.16783,
    "h": 283.4
  },
  "luminance": 0.11534
}

Semantic roles & 50–950 ramp

primary
#5B4FBE
secondary
#C7CC9C
accent
#D652C7
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5B4FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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