#5152EA#5152EA

#5152EA is a mid, highly saturated blue. Relative luminance 0.137; OKLCH L 53.5% C 0.223 H 275.5°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#5152EA
RGBrgb(81, 82, 234)
HSLhsl(240, 78%, 62%)
HSVhsv(240, 65%, 92%)
CMYKcmyk(65.4%, 65%, 0%, 8.2%)
CIE-LABlab(43.83, 45.60, -76.82)
CIE-LCHlch(43.83, 89.34, 300.69°)
OKLaboklab(53.46% 0.0215 -0.2217)
OKLCHoklch(53.46% 0.223 275.5)
XYZxyz(21.2570, 13.7226, 79.3544)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152EA #EAE951
analogous
#519FEA #5152EA #9D51EA
triadic
#5152EA #EA5152 #52EA51
tetradic
#5152EA #EA519F #EAE951 #51EA9D
square
#5152EA #EA519F #EAE951 #51EA9D
split-complementary
#5152EA #EA9D51 #9FEA51
monochromatic
#1516AC #1B1DE2 #5152EA #8888F1 #BEBFF7

Accessibility & contrast

On white

5.61
#5152EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#5152EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152EA
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152EA#FFFFFF#000000##FFFFFF
##5152EA1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEF
Deuteranopia (green-blind)
#0061E7
Tritanopia (blue-blind)
#007A97
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5152ea;
/* rgb */ color: rgb(81, 82, 234);
/* oklch */ color: oklch(53.5% 0.223 275.5);
Tailwind
colors: {
  custom: {
    50: '#9383f2',
    500: '#5152ea',
    950: '#000000',
  },
}
SCSS
$custom: #5152ea;
$custom-light: #9383f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5152ea",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 234
  },
  "hsl": {
    "h": 239.608,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.53463,
    "c": 0.22272,
    "h": 275.5
  },
  "luminance": 0.13724
}

Semantic roles & 50–950 ramp

primary
#5152EA
secondary
#E8E7AF
accent
#D90BDB
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0B17
muted
#7E7C85

Preview Lab

Preview with #5152EA

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

Preview Lab → · Contrast checker → · Palette generator →

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