#5151E5#5151E5

#5151E5 is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 52.9% C 0.218 H 276.0°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#5151E5
RGBrgb(81, 81, 229)
HSLhsl(240, 74%, 61%)
HSVhsv(240, 65%, 90%)
CMYKcmyk(64.6%, 64.6%, 0%, 10.2%)
CIE-LABlab(43.20, 44.57, -75.04)
CIE-LCHlch(43.20, 87.27, 300.71°)
OKLaboklab(52.87% 0.0226 -0.2164)
OKLCHoklch(52.87% 0.218 276)
XYZxyz(20.4740, 13.2896, 75.5997)
Luminance0.1329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151E5 #E5E551
analogous
#519BE5 #5151E5 #9B51E5
triadic
#5151E5 #E55151 #51E551
tetradic
#5151E5 #E5519B #E5E551 #51E59B
square
#5151E5 #E5519B #E5E551 #51E59B
split-complementary
#5151E5 #E59B51 #9BE551
monochromatic
#1818A3 #2020D8 #5151E5 #8686ED #BBBBF5

Accessibility & contrast

On white

5.74
#5151E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5151E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151E5
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151E5#FFFFFF#000000##FFFFFF
##5151E51.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DEA
Deuteranopia (green-blind)
#005FE2
Tritanopia (blue-blind)
#007794
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5151e5;
/* rgb */ color: rgb(81, 81, 229);
/* oklch */ color: oklch(52.9% 0.218 276.0);
Tailwind
colors: {
  custom: {
    50: '#9282ee',
    500: '#5151e5',
    950: '#000000',
  },
}
SCSS
$custom: #5151e5;
$custom-light: #9282ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5151e5",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 240,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.52872,
    "c": 0.21763,
    "h": 276
  },
  "luminance": 0.13291
}

Semantic roles & 50–950 ramp

primary
#5151E5
secondary
#E5E5AD
accent
#D60FD6
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #5151E5

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

Preview Lab → · Contrast checker → · Palette generator →

#5151E5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva