#5B4DAF#5B4DAF

#5B4DAF is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.7% C 0.150 H 285.9°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#5B4DAF
RGBrgb(91, 77, 175)
HSLhsl(249, 39%, 49%)
HSVhsv(249, 56%, 69%)
CMYKcmyk(48%, 56%, 0%, 31.4%)
CIE-LABlab(38.94, 31.58, -50.66)
CIE-LCHlch(38.94, 59.70, 301.94°)
OKLaboklab(48.66% 0.0412 -0.1445)
OKLCHoklch(48.66% 0.15 285.9)
XYZxyz(14.7039, 10.6264, 41.8255)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4DAF #A1AF4D
analogous
#4D70AF #5B4DAF #8C4DAF
triadic
#5B4DAF #AF5B4D #4DAF5B
tetradic
#5B4DAF #AF4D70 #A1AF4D #4DAF8C
square
#5B4DAF #AF4D70 #A1AF4D #4DAF8C
split-complementary
#5B4DAF #AF8C4D #70AF4D
monochromatic
#2F285A #453A85 #5B4DAF #8176C3 #A8A1D6

Accessibility & contrast

On white

6.72
#5B4DAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5B4DAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4DAF
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4DAF#FFFFFF#000000##FFFFFF
##5B4DAF1.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125EB2
Deuteranopia (green-blind)
#0E59AD
Tritanopia (blue-blind)
#3F6376
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5b4daf;
/* rgb */ color: rgb(91, 77, 175);
/* oklch */ color: oklch(48.7% 0.150 285.9);
Tailwind
colors: {
  custom: {
    50: '#8f7fc7',
    500: '#5b4daf',
    950: '#000000',
  },
}
SCSS
$custom: #5b4daf;
$custom-light: #8f7fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4daf",
  "rgb": {
    "r": 91,
    "g": 77,
    "b": 175
  },
  "hsl": {
    "h": 248.571,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48661,
    "c": 0.15029,
    "h": 285.9
  },
  "luminance": 0.10627
}

Semantic roles & 50–950 ramp

primary
#5B4DAF
secondary
#BCC395
accent
#CF59BE
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5B4DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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