#5152E4#5152E4

#5152E4 is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 52.9% C 0.215 H 275.9°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#5152E4
RGBrgb(81, 82, 228)
HSLhsl(240, 73%, 61%)
HSVhsv(240, 64%, 89%)
CMYKcmyk(64.5%, 64%, 0%, 10.6%)
CIE-LABlab(43.34, 43.65, -74.24)
CIE-LCHlch(43.34, 86.13, 300.46°)
OKLaboklab(52.95% 0.022 -0.2141)
OKLCHoklch(52.95% 0.215 275.9)
XYZxyz(20.4096, 13.3836, 74.8915)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152E4 #E4E351
analogous
#519BE4 #5152E4 #9951E4
triadic
#5152E4 #E45152 #52E451
tetradic
#5152E4 #E4519B #E4E351 #51E499
square
#5152E4 #E4519B #E4E351 #51E499
split-complementary
#5152E4 #E49951 #9BE451
monochromatic
#191AA2 #2123D7 #5152E4 #8687EC #BBBBF4

Accessibility & contrast

On white

5.71
#5152E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5152E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152E4
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152E4#FFFFFF#000000##FFFFFF
##5152E41.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)
#006DE9
Deuteranopia (green-blind)
#0060E1
Tritanopia (blue-blind)
#007894
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5152e4;
/* rgb */ color: rgb(81, 82, 228);
/* oklch */ color: oklch(52.9% 0.215 275.9);
Tailwind
colors: {
  custom: {
    50: '#9283ee',
    500: '#5152e4',
    950: '#000000',
  },
}
SCSS
$custom: #5152e4;
$custom-light: #9283ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5152e4",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 228
  },
  "hsl": {
    "h": 239.592,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.52948,
    "c": 0.21524,
    "h": 275.9
  },
  "luminance": 0.13385
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5152E4

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

Preview Lab → · Contrast checker → · Palette generator →

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