#5B4FBB#5B4FBB

#5B4FBB is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.9% C 0.164 H 283.8°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#5B4FBB
RGBrgb(91, 79, 187)
HSLhsl(247, 44%, 52%)
HSVhsv(247, 58%, 73%)
CMYKcmyk(51.3%, 57.8%, 0%, 26.7%)
CIE-LABlab(40.25, 34.06, -55.61)
CIE-LCHlch(40.25, 65.21, 301.49°)
OKLaboklab(49.89% 0.039 -0.1591)
OKLCHoklch(49.89% 0.164 283.8)
XYZxyz(16.0773, 11.4031, 48.3579)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FBB #AFBB4F
analogous
#4F79BB #5B4FBB #914FBB
triadic
#5B4FBB #BB5B4F #4FBB5B
tetradic
#5B4FBB #BB4F79 #AFBB4F #4FBB91
square
#5B4FBB #BB4F79 #AFBB4F #4FBB91
split-complementary
#5B4FBB #BB914F #79BB4F
monochromatic
#2F2868 #433994 #5B4FBB #847BCC #ADA7DD

Accessibility & contrast

On white

6.40
#5B4FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5B4FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FBB
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FBB#FFFFFF#000000##FFFFFF
##5B4FBB1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#005BB9
Tritanopia (blue-blind)
#36687D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5b4fbb;
/* rgb */ color: rgb(91, 79, 187);
/* oklch */ color: oklch(49.9% 0.164 283.8);
Tailwind
colors: {
  custom: {
    50: '#9181d0',
    500: '#5b4fbb',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fbb;
$custom-light: #9181d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fbb",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 187
  },
  "hsl": {
    "h": 246.667,
    "s": 44.262,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49892,
    "c": 0.1638,
    "h": 283.8
  },
  "luminance": 0.11404
}

Semantic roles & 50–950 ramp

primary
#5B4FBB
secondary
#C5CA9B
accent
#D454C6
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5B4FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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