#5B47DB#5B47DB

#5B47DB is a mid, highly saturated blue. Relative luminance 0.118; OKLCH L 51.2% C 0.215 H 281.8°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#5B47DB
RGBrgb(91, 71, 219)
HSLhsl(248, 67%, 57%)
HSVhsv(248, 68%, 86%)
CMYKcmyk(58.4%, 67.6%, 0%, 14.1%)
CIE-LABlab(40.97, 48.59, -72.96)
CIE-LCHlch(40.97, 87.66, 303.66°)
OKLaboklab(51.19% 0.044 -0.2101)
OKLCHoklch(51.19% 0.215 281.8)
XYZxyz(19.3498, 11.8438, 68.2705)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B47DB #C7DB47
analogous
#477DDB #5B47DB #A547DB
triadic
#5B47DB #DB5B47 #47DB5B
tetradic
#5B47DB #DB477D #C7DB47 #47DBA5
square
#5B47DB #DB477D #C7DB47 #47DBA5
split-complementary
#5B47DB #DBA547 #7DDB47
monochromatic
#2B1B8C #3A25BF #5B47DB #897AE5 #B6ADEF

Accessibility & contrast

On white

6.23
#5B47DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5B47DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B47DB
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B47DB#FFFFFF#000000##FFFFFF
##5B47DB1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E0
Deuteranopia (green-blind)
#005BD8
Tritanopia (blue-blind)
#006E8B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5b47db;
/* rgb */ color: rgb(91, 71, 219);
/* oklch */ color: oklch(51.2% 0.215 281.8);
Tailwind
colors: {
  custom: {
    50: '#967ce7',
    500: '#5b47db',
    950: '#000000',
  },
}
SCSS
$custom: #5b47db;
$custom-light: #967ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b47db",
  "rgb": {
    "r": 91,
    "g": 71,
    "b": 219
  },
  "hsl": {
    "h": 248.108,
    "s": 67.273,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51188,
    "c": 0.21466,
    "h": 281.8
  },
  "luminance": 0.11845
}

Semantic roles & 50–950 ramp

primary
#5B47DB
secondary
#D5DDA1
accent
#EA3ED3
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5B47DB

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

Preview Lab → · Contrast checker → · Palette generator →

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