#5151E1#5151E1

#5151E1 is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.5% C 0.213 H 276.2°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5151E1
RGBrgb(81, 81, 225)
HSLhsl(240, 71%, 60%)
HSVhsv(240, 64%, 88%)
CMYKcmyk(64%, 64%, 0%, 11.8%)
CIE-LABlab(42.87, 43.27, -73.30)
CIE-LCHlch(42.87, 85.12, 300.55°)
OKLaboklab(52.53% 0.023 -0.2114)
OKLCHoklch(52.53% 0.213 276.2)
XYZxyz(19.9219, 13.0688, 72.6922)
Luminance0.1307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151E1 #E1E151
analogous
#5199E1 #5151E1 #9951E1
triadic
#5151E1 #E15151 #51E151
tetradic
#5151E1 #E15199 #E1E151 #51E199
square
#5151E1 #E15199 #E1E151 #51E199
split-complementary
#5151E1 #E19951 #99E151
monochromatic
#1B1B9D #2424D1 #5151E1 #8585EA #B9B9F3

Accessibility & contrast

On white

5.81
#5151E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5151E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151E1
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151E1#FFFFFF#000000##FFFFFF
##5151E11.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE6
Deuteranopia (green-blind)
#005FDE
Tritanopia (blue-blind)
#007692
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5151e1;
/* rgb */ color: rgb(81, 81, 225);
/* oklch */ color: oklch(52.5% 0.213 276.2);
Tailwind
colors: {
  custom: {
    50: '#9282eb',
    500: '#5151e1',
    950: '#000000',
  },
}
SCSS
$custom: #5151e1;
$custom-light: #9282eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5151e1",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 225
  },
  "hsl": {
    "h": 240,
    "s": 70.588,
    "l": 60
  },
  "oklch": {
    "l": 0.5253,
    "c": 0.21262,
    "h": 276.2
  },
  "luminance": 0.1307
}

Semantic roles & 50–950 ramp

primary
#5151E1
secondary
#E3E3AB
accent
#ED3AED
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5151E1

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

Preview Lab → · Contrast checker → · Palette generator →

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