#5152E5#5152E5

#5152E5 is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 53.0% C 0.216 H 275.8°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#5152E5
RGBrgb(81, 82, 229)
HSLhsl(240, 74%, 61%)
HSVhsv(240, 65%, 90%)
CMYKcmyk(64.6%, 64.2%, 0%, 10.2%)
CIE-LABlab(43.42, 43.98, -74.67)
CIE-LCHlch(43.42, 86.66, 300.50°)
OKLaboklab(53.03% 0.0219 -0.2154)
OKLCHoklch(53.03% 0.216 275.8)
XYZxyz(20.5489, 13.4393, 75.6247)
Luminance0.1344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152E5 #E5E451
analogous
#519CE5 #5152E5 #9A51E5
triadic
#5152E5 #E55152 #52E551
tetradic
#5152E5 #E5519C #E5E451 #51E59A
square
#5152E5 #E5519C #E5E451 #51E59A
split-complementary
#5152E5 #E59A51 #9CE551
monochromatic
#1819A3 #2022D8 #5152E5 #8687ED #BBBCF5

Accessibility & contrast

On white

5.69
#5152E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#5152E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152E5
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152E5#FFFFFF#000000##FFFFFF
##5152E51.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DEA
Deuteranopia (green-blind)
#0060E2
Tritanopia (blue-blind)
#007894
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5152e5;
/* rgb */ color: rgb(81, 82, 229);
/* oklch */ color: oklch(53.0% 0.216 275.8);
Tailwind
colors: {
  custom: {
    50: '#9283ee',
    500: '#5152e5',
    950: '#000000',
  },
}
SCSS
$custom: #5152e5;
$custom-light: #9283ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5152e5",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 229
  },
  "hsl": {
    "h": 239.595,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.53033,
    "c": 0.21649,
    "h": 275.8
  },
  "luminance": 0.13441
}

Semantic roles & 50–950 ramp

primary
#5152E5
secondary
#E5E5AD
accent
#D50FD6
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #5152E5

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

Preview Lab → · Contrast checker → · Palette generator →

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