#5B45DF#5B45DF

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

Color values

HEX#5B45DF
RGBrgb(91, 69, 223)
HSLhsl(249, 71%, 57%)
HSVhsv(249, 69%, 87%)
CMYKcmyk(59.2%, 69.1%, 0%, 12.5%)
CIE-LABlab(40.91, 50.90, -75.34)
CIE-LCHlch(40.91, 90.93, 304.04°)
OKLaboklab(51.25% 0.0449 -0.2171)
OKLCHoklch(51.25% 0.222 281.7)
XYZxyz(19.7576, 11.8067, 71.0355)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45DF #C9DF45
analogous
#457CDF #5B45DF #A845DF
triadic
#5B45DF #DF5B45 #45DF5B
tetradic
#5B45DF #DF457C #C9DF45 #45DFA8
square
#5B45DF #DF457C #C9DF45 #45DFA8
split-complementary
#5B45DF #DFA845 #7CDF45
monochromatic
#2A1991 #3922C5 #5B45DF #8979E8 #B7ADF1

Accessibility & contrast

On white

6.25
#5B45DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#5B45DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B45DF
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45DF#FFFFFF#000000##FFFFFF
##5B45DF1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E4
Deuteranopia (green-blind)
#005BDC
Tritanopia (blue-blind)
#006E8D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5b45df;
/* rgb */ color: rgb(91, 69, 223);
/* oklch */ color: oklch(51.2% 0.222 281.7);
Tailwind
colors: {
  custom: {
    50: '#977bea',
    500: '#5b45df',
    950: '#000000',
  },
}
SCSS
$custom: #5b45df;
$custom-light: #977bea;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45df",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 223
  },
  "hsl": {
    "h": 248.571,
    "s": 70.642,
    "l": 57.255
  },
  "oklch": {
    "l": 0.5125,
    "c": 0.22168,
    "h": 281.7
  },
  "luminance": 0.11808
}

Semantic roles & 50–950 ramp

primary
#5B45DF
secondary
#D6DFA1
accent
#ED3AD4
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B45DF

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

Preview Lab → · Contrast checker → · Palette generator →

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