#5151E4#5151E4

#5151E4 is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.8% C 0.216 H 276.0°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#5151E4
RGBrgb(81, 81, 228)
HSLhsl(240, 73%, 61%)
HSVhsv(240, 64%, 89%)
CMYKcmyk(64.5%, 64.5%, 0%, 10.6%)
CIE-LABlab(43.11, 44.25, -74.60)
CIE-LCHlch(43.11, 86.74, 300.67°)
OKLaboklab(52.79% 0.0227 -0.2152)
OKLCHoklch(52.79% 0.216 276)
XYZxyz(20.3348, 13.2339, 74.8665)
Luminance0.1324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151E4 #E4E451
analogous
#519AE4 #5151E4 #9A51E4
triadic
#5151E4 #E45151 #51E451
tetradic
#5151E4 #E4519A #E4E451 #51E49A
square
#5151E4 #E4519A #E4E451 #51E49A
split-complementary
#5151E4 #E49A51 #9AE451
monochromatic
#1919A2 #2121D7 #5151E4 #8686EC #BBBBF4

Accessibility & contrast

On white

5.76
#5151E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#5151E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151E4
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151E4#FFFFFF#000000##FFFFFF
##5151E41.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE9
Deuteranopia (green-blind)
#005FE1
Tritanopia (blue-blind)
#007793
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5151e4;
/* rgb */ color: rgb(81, 81, 228);
/* oklch */ color: oklch(52.8% 0.216 276.0);
Tailwind
colors: {
  custom: {
    50: '#9282ee',
    500: '#5151e4',
    950: '#000000',
  },
}
SCSS
$custom: #5151e4;
$custom-light: #9282ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5151e4",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 240,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.52786,
    "c": 0.21638,
    "h": 276
  },
  "luminance": 0.13236
}

Semantic roles & 50–950 ramp

primary
#5151E4
secondary
#E4E4AC
accent
#D510D5
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5151E4

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

Preview Lab → · Contrast checker → · Palette generator →

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