#5E51EA#5E51EA

#5E51EA is a mid, highly saturated blue. Relative luminance 0.142; OKLCH L 54.2% C 0.221 H 279.9°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#5E51EA
RGBrgb(94, 81, 234)
HSLhsl(245, 78%, 62%)
HSVhsv(245, 65%, 92%)
CMYKcmyk(59.8%, 65.4%, 0%, 8.2%)
CIE-LABlab(44.52, 47.99, -75.66)
CIE-LCHlch(44.52, 89.60, 302.39°)
OKLaboklab(54.2% 0.0378 -0.2179)
OKLCHoklch(54.2% 0.221 279.9)
XYZxyz(22.4051, 14.2034, 79.3868)
Luminance0.1421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E51EA #DDEA51
analogous
#5191EA #5E51EA #AB51EA
triadic
#5E51EA #EA5E51 #51EA5E
tetradic
#5E51EA #EA5191 #DDEA51 #51EAAB
square
#5E51EA #EA5191 #DDEA51 #51EAAB
split-complementary
#5E51EA #EAAB51 #91EA51
monochromatic
#2215AC #2C1BE2 #5E51EA #9188F1 #C3BEF7

Accessibility & contrast

On white

5.47
#5E51EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#5E51EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E51EA
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E51EA#FFFFFF#000000##FFFFFF
##5E51EA1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEF
Deuteranopia (green-blind)
#0063E7
Tritanopia (blue-blind)
#007897
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5e51ea;
/* rgb */ color: rgb(94, 81, 234);
/* oklch */ color: oklch(54.2% 0.221 279.9);
Tailwind
colors: {
  custom: {
    50: '#9a83f2',
    500: '#5e51ea',
    950: '#000000',
  },
}
SCSS
$custom: #5e51ea;
$custom-light: #9a83f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e51ea",
  "rgb": {
    "r": 94,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 245.098,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.54197,
    "c": 0.22118,
    "h": 279.9
  },
  "luminance": 0.14205
}

Semantic roles & 50–950 ramp

primary
#5E51EA
secondary
#E3E8AF
accent
#DB0BC9
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5E51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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