#5D45E1#5D45E1

#5D45E1 is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.6% C 0.224 H 282.2°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#5D45E1
RGBrgb(93, 69, 225)
HSLhsl(249, 72%, 58%)
HSVhsv(249, 69%, 88%)
CMYKcmyk(58.7%, 69.3%, 0%, 11.8%)
CIE-LABlab(41.25, 51.78, -75.92)
CIE-LCHlch(41.25, 91.90, 304.29°)
OKLaboklab(51.59% 0.0473 -0.2187)
OKLCHoklch(51.59% 0.224 282.2)
XYZxyz(20.2287, 12.0183, 72.4734)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D45E1 #C9E145
analogous
#457BE1 #5D45E1 #AB45E1
triadic
#5D45E1 #E15D45 #45E15D
tetradic
#5D45E1 #E1457B #C9E145 #45E1AB
square
#5D45E1 #E1457B #C9E145 #45E1AB
split-complementary
#5D45E1 #E1AB45 #7BE145
monochromatic
#2B1894 #3A20C8 #5D45E1 #8B7AE9 #B9AEF2

Accessibility & contrast

On white

6.17
#5D45E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5D45E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D45E1
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D45E1#FFFFFF#000000##FFFFFF
##5D45E11.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E6
Deuteranopia (green-blind)
#005CDE
Tritanopia (blue-blind)
#006F8E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5d45e1;
/* rgb */ color: rgb(93, 69, 225);
/* oklch */ color: oklch(51.6% 0.224 282.2);
Tailwind
colors: {
  custom: {
    50: '#987bec',
    500: '#5d45e1',
    950: '#000000',
  },
}
SCSS
$custom: #5d45e1;
$custom-light: #987bec;
$custom-dark: #000000;
JSON
{
  "hex": "#5d45e1",
  "rgb": {
    "r": 93,
    "g": 69,
    "b": 225
  },
  "hsl": {
    "h": 249.231,
    "s": 72.222,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51586,
    "c": 0.22377,
    "h": 282.2
  },
  "luminance": 0.1202
}

Semantic roles & 50–950 ramp

primary
#5D45E1
secondary
#D7E0A2
accent
#EF39D3
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5D45E1

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

Preview Lab → · Contrast checker → · Palette generator →

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