#5B4FBC#5B4FBC

#5B4FBC is a mid, vivid blue. Relative luminance 0.114; OKLCH L 50.0% C 0.165 H 283.7°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#5B4FBC
RGBrgb(91, 79, 188)
HSLhsl(247, 45%, 52%)
HSVhsv(247, 58%, 74%)
CMYKcmyk(51.6%, 58%, 0%, 26.3%)
CIE-LABlab(40.32, 34.37, -56.08)
CIE-LCHlch(40.32, 65.77, 301.50°)
OKLaboklab(49.97% 0.039 -0.1605)
OKLCHoklch(49.97% 0.165 283.7)
XYZxyz(16.1847, 11.4461, 48.9237)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FBC #B0BC4F
analogous
#4F79BC #5B4FBC #924FBC
triadic
#5B4FBC #BC5B4F #4FBC5B
tetradic
#5B4FBC #BC4F79 #B0BC4F #4FBC92
square
#5B4FBC #BC4F79 #B0BC4F #4FBC92
split-complementary
#5B4FBC #BC924F #79BC4F
monochromatic
#2F2869 #433995 #5B4FBC #847BCD #AEA8DE

Accessibility & contrast

On white

6.38
#5B4FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5B4FBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FBC
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FBC#FFFFFF#000000##FFFFFF
##5B4FBC1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C0
Deuteranopia (green-blind)
#005BBA
Tritanopia (blue-blind)
#35687E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5b4fbc;
/* rgb */ color: rgb(91, 79, 188);
/* oklch */ color: oklch(50.0% 0.165 283.7);
Tailwind
colors: {
  custom: {
    50: '#9181d1',
    500: '#5b4fbc',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fbc;
$custom-light: #9181d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fbc",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 188
  },
  "hsl": {
    "h": 246.606,
    "s": 44.856,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49967,
    "c": 0.16515,
    "h": 283.7
  },
  "luminance": 0.11447
}

Semantic roles & 50–950 ramp

primary
#5B4FBC
secondary
#C6CB9C
accent
#D553C6
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5B4FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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