#5B4EAF#5B4EAF

#5B4EAF is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.8% C 0.149 H 285.6°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#5B4EAF
RGBrgb(91, 78, 175)
HSLhsl(248, 38%, 50%)
HSVhsv(248, 55%, 69%)
CMYKcmyk(48%, 55.4%, 0%, 31.4%)
CIE-LABlab(39.19, 30.97, -50.27)
CIE-LCHlch(39.19, 59.04, 301.64°)
OKLaboklab(48.84% 0.04 -0.1434)
OKLCHoklch(48.84% 0.149 285.6)
XYZxyz(14.7744, 10.7674, 41.8490)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4EAF #A2AF4E
analogous
#4E72AF #5B4EAF #8C4EAF
triadic
#5B4EAF #AF5B4E #4EAF5B
tetradic
#5B4EAF #AF4E72 #A2AF4E #4EAF8C
square
#5B4EAF #AF4E72 #A2AF4E #4EAF8C
split-complementary
#5B4EAF #AF8C4E #72AF4E
monochromatic
#2F285A #453B85 #5B4EAF #8278C3 #A9A2D6

Accessibility & contrast

On white

6.66
#5B4EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5B4EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4EAF
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4EAF#FFFFFF#000000##FFFFFF
##5B4EAF1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175FB2
Deuteranopia (green-blind)
#1259AD
Tritanopia (blue-blind)
#3E6377
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5b4eaf;
/* rgb */ color: rgb(91, 78, 175);
/* oklch */ color: oklch(48.8% 0.149 285.6);
Tailwind
colors: {
  custom: {
    50: '#8f80c7',
    500: '#5b4eaf',
    950: '#000000',
  },
}
SCSS
$custom: #5b4eaf;
$custom-light: #8f80c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4eaf",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 175
  },
  "hsl": {
    "h": 248.041,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.4884,
    "c": 0.14886,
    "h": 285.6
  },
  "luminance": 0.10768
}

Semantic roles & 50–950 ramp

primary
#5B4EAF
secondary
#BDC396
accent
#CE5ABF
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5B4EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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