#5B4BDF#5B4BDF

#5B4BDF is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 52.1% C 0.215 H 280.8°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#5B4BDF
RGBrgb(91, 75, 223)
HSLhsl(246, 70%, 58%)
HSVhsv(246, 66%, 87%)
CMYKcmyk(59.2%, 66.4%, 0%, 12.5%)
CIE-LABlab(42.13, 47.57, -73.35)
CIE-LCHlch(42.13, 87.42, 302.96°)
OKLaboklab(52.13% 0.0402 -0.2112)
OKLCHoklch(52.13% 0.215 280.8)
XYZxyz(20.1456, 12.5826, 71.1648)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4BDF #CFDF4B
analogous
#4B85DF #5B4BDF #A54BDF
triadic
#5B4BDF #DF5B4B #4BDF5B
tetradic
#5B4BDF #DF4B85 #CFDF4B #4BDFA5
square
#5B4BDF #DF4B85 #CFDF4B #4BDFA5
split-complementary
#5B4BDF #DFA54B #85DF4B
monochromatic
#281B95 #3624C9 #5B4BDF #8A7FE8 #BAB3F1

Accessibility & contrast

On white

5.97
#5B4BDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5B4BDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4BDF
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4BDF#FFFFFF#000000##FFFFFF
##5B4BDF1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E4
Deuteranopia (green-blind)
#005EDC
Tritanopia (blue-blind)
#00718F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b4bdf;
/* rgb */ color: rgb(91, 75, 223);
/* oklch */ color: oklch(52.1% 0.215 280.8);
Tailwind
colors: {
  custom: {
    50: '#977fea',
    500: '#5b4bdf',
    950: '#000000',
  },
}
SCSS
$custom: #5b4bdf;
$custom-light: #977fea;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4bdf",
  "rgb": {
    "r": 91,
    "g": 75,
    "b": 223
  },
  "hsl": {
    "h": 246.486,
    "s": 69.811,
    "l": 58.431
  },
  "oklch": {
    "l": 0.52127,
    "c": 0.21502,
    "h": 280.8
  },
  "luminance": 0.12584
}

Semantic roles & 50–950 ramp

primary
#5B4BDF
secondary
#DAE0A6
accent
#ED3BD9
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5B4BDF

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

Preview Lab → · Contrast checker → · Palette generator →

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