#5E51CD#5E51CD

#5E51CD is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.8% C 0.185 H 282.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#5E51CD
RGBrgb(94, 81, 205)
HSLhsl(246, 55%, 56%)
HSVhsv(246, 60%, 80%)
CMYKcmyk(54.1%, 60.5%, 0%, 19.6%)
CIE-LABlab(42.26, 39.02, -62.79)
CIE-LCHlch(42.26, 73.93, 301.86°)
OKLaboklab(51.85% 0.0402 -0.1801)
OKLCHoklch(51.85% 0.185 282.6)
XYZxyz(18.5746, 12.6712, 59.2128)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E51CD #C0CD51
analogous
#5182CD #5E51CD #9C51CD
triadic
#5E51CD #CD5E51 #51CD5E
tetradic
#5E51CD #CD5182 #C0CD51 #51CD9C
square
#5E51CD #CD5182 #C0CD51 #51CD9C
split-complementary
#5E51CD #CD9C51 #82CD51
monochromatic
#2E257F #3F32AF #5E51CD #8A81DB #B6B0E8

Accessibility & contrast

On white

5.94
#5E51CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5E51CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E51CD
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E51CD#FFFFFF#000000##FFFFFF
##5E51CD1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#2C6F87
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5e51cd;
/* rgb */ color: rgb(94, 81, 205);
/* oklch */ color: oklch(51.8% 0.185 282.6);
Tailwind
colors: {
  custom: {
    50: '#9582dd',
    500: '#5e51cd',
    950: '#000000',
  },
}
SCSS
$custom: #5e51cd;
$custom-light: #9582dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e51cd",
  "rgb": {
    "r": 94,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 246.29,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51846,
    "c": 0.18457,
    "h": 282.6
  },
  "luminance": 0.12672
}

Semantic roles & 50–950 ramp

primary
#5E51CD
secondary
#D1D7A3
accent
#DF49CF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5E51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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