#5E51DB#5E51DB

#5E51DB is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 53.0% C 0.203 H 281.2°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#5E51DB
RGBrgb(94, 81, 219)
HSLhsl(246, 66%, 59%)
HSVhsv(246, 63%, 86%)
CMYKcmyk(57.1%, 63%, 0%, 14.1%)
CIE-LABlab(43.33, 43.35, -69.10)
CIE-LCHlch(43.33, 81.57, 302.11°)
OKLaboklab(52.96% 0.0393 -0.1987)
OKLCHoklch(52.96% 0.203 281.2)
XYZxyz(20.3407, 13.3777, 68.5144)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E51DB #CEDB51
analogous
#5189DB #5E51DB #A351DB
triadic
#5E51DB #DB5E51 #51DB5E
tetradic
#5E51DB #DB5189 #CEDB51 #51DBA3
square
#5E51DB #DB5189 #CEDB51 #51DBA3
split-complementary
#5E51DB #DBA351 #89DB51
monochromatic
#291E93 #3829C6 #5E51DB #8D84E5 #BCB6F0

Accessibility & contrast

On white

5.71
#5E51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5E51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E51DB
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E51DB#FFFFFF#000000##FFFFFF
##5E51DB1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDF
Deuteranopia (green-blind)
#0061D8
Tritanopia (blue-blind)
#15738F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5e51db;
/* rgb */ color: rgb(94, 81, 219);
/* oklch */ color: oklch(53.0% 0.203 281.2);
Tailwind
colors: {
  custom: {
    50: '#9783e7',
    500: '#5e51db',
    950: '#000000',
  },
}
SCSS
$custom: #5e51db;
$custom-light: #9783e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e51db",
  "rgb": {
    "r": 94,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 245.652,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52956,
    "c": 0.20251,
    "h": 281.2
  },
  "luminance": 0.13379
}

Semantic roles & 50–950 ramp

primary
#5E51DB
secondary
#DADFA9
accent
#E93FD9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5E51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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