#5B4FA5#5B4FA5

#5B4FA5 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.3% C 0.133 H 286.7°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#5B4FA5
RGBrgb(91, 79, 165)
HSLhsl(248, 35%, 48%)
HSVhsv(248, 52%, 65%)
CMYKcmyk(44.8%, 52.1%, 0%, 35.3%)
CIE-LABlab(38.78, 27.30, -44.98)
CIE-LCHlch(38.78, 52.62, 301.26°)
OKLaboklab(48.33% 0.0383 -0.1278)
OKLCHoklch(48.33% 0.133 286.7)
XYZxyz(13.8999, 10.5322, 36.8905)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FA5 #99A54F
analogous
#4F6EA5 #5B4FA5 #864FA5
triadic
#5B4FA5 #A55B4F #4FA55B
tetradic
#5B4FA5 #A54F6E #99A54F #4FA586
square
#5B4FA5 #A54F6E #99A54F #4FA586
split-complementary
#5B4FA5 #A5864F #6EA54F
monochromatic
#2D2752 #443B7C #5B4FA5 #7F75BD #A59ED1

Accessibility & contrast

On white

6.76
#5B4FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5B4FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FA5
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FA5#FFFFFF#000000##FFFFFF
##5B4FA51.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285EA8
Deuteranopia (green-blind)
#2759A3
Tritanopia (blue-blind)
#446172
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b4fa5;
/* rgb */ color: rgb(91, 79, 165);
/* oklch */ color: oklch(48.3% 0.133 286.7);
Tailwind
colors: {
  custom: {
    50: '#8e80c0',
    500: '#5b4fa5',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fa5;
$custom-light: #8e80c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fa5",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 248.372,
    "s": 35.246,
    "l": 47.843
  },
  "oklch": {
    "l": 0.4833,
    "c": 0.13346,
    "h": 286.7
  },
  "luminance": 0.10533
}

Semantic roles & 50–950 ramp

primary
#5B4FA5
secondary
#B7BD92
accent
#CB5DBC
background
#F9F7FB
surface
#F1EEF7
border
#CBC9D0
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #5B4FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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