#5B45DB#5B45DB

#5B45DB is a mid, highly saturated blue. Relative luminance 0.116; OKLCH L 50.9% C 0.217 H 282.1°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#5B45DB
RGBrgb(91, 69, 219)
HSLhsl(249, 68%, 56%)
HSVhsv(249, 68%, 86%)
CMYKcmyk(58.4%, 68.5%, 0%, 14.1%)
CIE-LABlab(40.56, 49.70, -73.62)
CIE-LCHlch(40.56, 88.83, 304.02°)
OKLaboklab(50.9% 0.0456 -0.212)
OKLCHoklch(50.9% 0.217 282.1)
XYZxyz(19.2247, 11.5936, 68.2288)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45DB #C5DB45
analogous
#457ADB #5B45DB #A645DB
triadic
#5B45DB #DB5B45 #45DB5B
tetradic
#5B45DB #DB457A #C5DB45 #45DBA6
square
#5B45DB #DB457A #C5DB45 #45DBA6
split-complementary
#5B45DB #DBA645 #7ADB45
monochromatic
#2B1B8B #3B25BE #5B45DB #8878E5 #B5ACEF

Accessibility & contrast

On white

6.33
#5B45DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#5B45DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B45DB
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45DB#FFFFFF#000000##FFFFFF
##5B45DB1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b45db;
/* rgb */ color: rgb(91, 69, 219);
/* oklch */ color: oklch(50.9% 0.217 282.1);
Tailwind
colors: {
  custom: {
    50: '#967be7',
    500: '#5b45db',
    950: '#000000',
  },
}
SCSS
$custom: #5b45db;
$custom-light: #967be7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45db",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 219
  },
  "hsl": {
    "h": 248.8,
    "s": 67.568,
    "l": 56.471
  },
  "oklch": {
    "l": 0.50898,
    "c": 0.21689,
    "h": 282.1
  },
  "luminance": 0.11595
}

Semantic roles & 50–950 ramp

primary
#5B45DB
secondary
#D4DD9F
accent
#EA3DD1
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B45DB

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

Preview Lab → · Contrast checker → · Palette generator →

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