#5D46E1#5D46E1

#5D46E1 is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.7% C 0.223 H 282.0°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5D46E1
RGBrgb(93, 70, 225)
HSLhsl(249, 72%, 58%)
HSVhsv(249, 69%, 88%)
CMYKcmyk(58.7%, 68.9%, 0%, 11.8%)
CIE-LABlab(41.44, 51.24, -75.60)
CIE-LCHlch(41.44, 91.33, 304.13°)
OKLaboklab(51.73% 0.0465 -0.2178)
OKLCHoklch(51.73% 0.223 282)
XYZxyz(20.2907, 12.1423, 72.4940)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D46E1 #CAE146
analogous
#467DE1 #5D46E1 #AA46E1
triadic
#5D46E1 #E15D46 #46E15D
tetradic
#5D46E1 #E1467D #CAE146 #46E1AA
square
#5D46E1 #E1467D #CAE146 #46E1AA
split-complementary
#5D46E1 #E1AA46 #7DE146
monochromatic
#2B1895 #3A21C9 #5D46E1 #8B7BEA #B9AFF2

Accessibility & contrast

On white

6.12
#5D46E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5D46E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D46E1
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D46E1#FFFFFF#000000##FFFFFF
##5D46E11.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d46e1;
/* rgb */ color: rgb(93, 70, 225);
/* oklch */ color: oklch(51.7% 0.223 282.0);
Tailwind
colors: {
  custom: {
    50: '#987cec',
    500: '#5d46e1',
    950: '#000000',
  },
}
SCSS
$custom: #5d46e1;
$custom-light: #987cec;
$custom-dark: #000000;
JSON
{
  "hex": "#5d46e1",
  "rgb": {
    "r": 93,
    "g": 70,
    "b": 225
  },
  "hsl": {
    "h": 248.903,
    "s": 72.093,
    "l": 57.843
  },
  "oklch": {
    "l": 0.51726,
    "c": 0.22268,
    "h": 282
  },
  "luminance": 0.12144
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D46E1

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

Preview Lab → · Contrast checker → · Palette generator →

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