#5151E9#5151E9

#5151E9 is a mid, highly saturated blue. Relative luminance 0.135; OKLCH L 53.2% C 0.223 H 275.7°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#5151E9
RGBrgb(81, 81, 233)
HSLhsl(240, 78%, 62%)
HSVhsv(240, 65%, 91%)
CMYKcmyk(65.2%, 65.2%, 0%, 8.6%)
CIE-LABlab(43.53, 45.86, -76.75)
CIE-LCHlch(43.53, 89.41, 300.86°)
OKLaboklab(53.22% 0.0223 -0.2215)
OKLCHoklch(53.22% 0.223 275.7)
XYZxyz(21.0389, 13.5156, 78.5750)
Luminance0.1352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151E9 #E9E951
analogous
#519DE9 #5151E9 #9D51E9
triadic
#5151E9 #E95151 #51E951
tetradic
#5151E9 #E9519D #E9E951 #51E99D
square
#5151E9 #E9519D #E9E951 #51E99D
split-complementary
#5151E9 #E99D51 #9DE951
monochromatic
#1616AA #1C1CE0 #5151E9 #8787F0 #BEBEF7

Accessibility & contrast

On white

5.67
#5151E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#5151E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151E9
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151E9#FFFFFF#000000##FFFFFF
##5151E91.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEE
Deuteranopia (green-blind)
#0060E6
Tritanopia (blue-blind)
#007996
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5151e9;
/* rgb */ color: rgb(81, 81, 233);
/* oklch */ color: oklch(53.2% 0.223 275.7);
Tailwind
colors: {
  custom: {
    50: '#9382f1',
    500: '#5151e9',
    950: '#000000',
  },
}
SCSS
$custom: #5151e9;
$custom-light: #9382f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5151e9",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 233
  },
  "hsl": {
    "h": 240,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.53217,
    "c": 0.2226,
    "h": 275.7
  },
  "luminance": 0.13517
}

Semantic roles & 50–950 ramp

primary
#5151E9
secondary
#E7E7AF
accent
#DA0CDA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #5151E9

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

Preview Lab → · Contrast checker → · Palette generator →

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