#5E51D9#5E51D9

#5E51D9 is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.8% C 0.200 H 281.4°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#5E51D9
RGBrgb(94, 81, 217)
HSLhsl(246, 64%, 58%)
HSVhsv(246, 63%, 85%)
CMYKcmyk(56.7%, 62.7%, 0%, 14.9%)
CIE-LABlab(43.17, 42.74, -68.21)
CIE-LCHlch(43.17, 80.49, 302.07°)
OKLaboklab(52.8% 0.0395 -0.196)
OKLCHoklch(52.8% 0.2 281.4)
XYZxyz(20.0790, 13.2730, 67.1361)
Luminance0.1327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E51D9 #CCD951
analogous
#5188D9 #5E51D9 #A251D9
triadic
#5E51D9 #D95E51 #51D95E
tetradic
#5E51D9 #D95188 #CCD951 #51D9A2
square
#5E51D9 #D95188 #CCD951 #51D9A2
split-complementary
#5E51D9 #D9A251 #88D951
monochromatic
#2A1F90 #392AC2 #5E51D9 #8C83E4 #BBB5EF

Accessibility & contrast

On white

5.75
#5E51D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#5E51D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E51D9
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E51D9#FFFFFF#000000##FFFFFF
##5E51D91.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDD
Deuteranopia (green-blind)
#0061D6
Tritanopia (blue-blind)
#1A738D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5e51d9;
/* rgb */ color: rgb(94, 81, 217);
/* oklch */ color: oklch(52.8% 0.200 281.4);
Tailwind
colors: {
  custom: {
    50: '#9783e6',
    500: '#5e51d9',
    950: '#000000',
  },
}
SCSS
$custom: #5e51d9;
$custom-light: #9783e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e51d9",
  "rgb": {
    "r": 94,
    "g": 81,
    "b": 217
  },
  "hsl": {
    "h": 245.735,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.52795,
    "c": 0.19998,
    "h": 281.4
  },
  "luminance": 0.13274
}

Semantic roles & 50–950 ramp

primary
#5E51D9
secondary
#D9DEA8
accent
#E741D7
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5E51D9

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

Preview Lab → · Contrast checker → · Palette generator →

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