#5B46DB#5B46DB

#5B46DB is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 51.0% C 0.216 H 282.0°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#5B46DB
RGBrgb(91, 70, 219)
HSLhsl(248, 67%, 57%)
HSVhsv(248, 68%, 86%)
CMYKcmyk(58.4%, 68%, 0%, 14.1%)
CIE-LABlab(40.76, 49.15, -73.29)
CIE-LCHlch(40.76, 88.25, 303.84°)
OKLaboklab(51.04% 0.0448 -0.2111)
OKLCHoklch(51.04% 0.216 282)
XYZxyz(19.2867, 11.7176, 68.2495)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B46DB #C6DB46
analogous
#467CDB #5B46DB #A546DB
triadic
#5B46DB #DB5B46 #46DB5B
tetradic
#5B46DB #DB467C #C6DB46 #46DBA5
square
#5B46DB #DB467C #C6DB46 #46DBA5
split-complementary
#5B46DB #DBA546 #7CDB46
monochromatic
#2B1B8B #3B25BF #5B46DB #8879E5 #B6ACEF

Accessibility & contrast

On white

6.28
#5B46DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5B46DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B46DB
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B46DB#FFFFFF#000000##FFFFFF
##5B46DB1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E0
Deuteranopia (green-blind)
#005BD8
Tritanopia (blue-blind)
#006D8B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5b46db;
/* rgb */ color: rgb(91, 70, 219);
/* oklch */ color: oklch(51.0% 0.216 282.0);
Tailwind
colors: {
  custom: {
    50: '#967be7',
    500: '#5b46db',
    950: '#000000',
  },
}
SCSS
$custom: #5b46db;
$custom-light: #967be7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b46db",
  "rgb": {
    "r": 91,
    "g": 70,
    "b": 219
  },
  "hsl": {
    "h": 248.456,
    "s": 67.421,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51042,
    "c": 0.21578,
    "h": 282
  },
  "luminance": 0.11719
}

Semantic roles & 50–950 ramp

primary
#5B46DB
secondary
#D4DDA0
accent
#EA3DD2
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B46DB

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

Preview Lab → · Contrast checker → · Palette generator →

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