#5152E1#5152E1

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

Color values

HEX#5152E1
RGBrgb(81, 82, 225)
HSLhsl(240, 71%, 60%)
HSVhsv(240, 64%, 88%)
CMYKcmyk(64%, 63.6%, 0%, 11.8%)
CIE-LABlab(43.09, 42.68, -72.94)
CIE-LCHlch(43.09, 84.51, 300.33°)
OKLaboklab(52.69% 0.0222 -0.2103)
OKLCHoklch(52.69% 0.211 276)
XYZxyz(19.9968, 13.2185, 72.7172)
Luminance0.1322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152E1 #E1E051
analogous
#519AE1 #5152E1 #9851E1
triadic
#5152E1 #E15152 #52E151
tetradic
#5152E1 #E1519A #E1E051 #51E198
square
#5152E1 #E1519A #E1E051 #51E198
split-complementary
#5152E1 #E19851 #9AE151
monochromatic
#1B1C9D #2425D1 #5152E1 #8586EA #B9BAF3

Accessibility & contrast

On white

5.76
#5152E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#5152E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152E1
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152E1#FFFFFF#000000##FFFFFF
##5152E11.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE6
Deuteranopia (green-blind)
#005FDE
Tritanopia (blue-blind)
#007792
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5152e1;
/* rgb */ color: rgb(81, 82, 225);
/* oklch */ color: oklch(52.7% 0.211 276.0);
Tailwind
colors: {
  custom: {
    50: '#9283eb',
    500: '#5152e1',
    950: '#000000',
  },
}
SCSS
$custom: #5152e1;
$custom-light: #9283eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5152e1",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 225
  },
  "hsl": {
    "h": 239.583,
    "s": 70.588,
    "l": 60
  },
  "oklch": {
    "l": 0.52693,
    "c": 0.21146,
    "h": 276
  },
  "luminance": 0.1322
}

Semantic roles & 50–950 ramp

primary
#5152E1
secondary
#E3E2AB
accent
#EC3AED
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5152E1

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

Preview Lab → · Contrast checker → · Palette generator →

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