#5152DD#5152DD

#5152DD is a mid, highly saturated blue. Relative luminance 0.130; OKLCH L 52.4% C 0.206 H 276.3°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#5152DD
RGBrgb(81, 82, 221)
HSLhsl(240, 67%, 59%)
HSVhsv(240, 63%, 87%)
CMYKcmyk(63.3%, 62.9%, 0%, 13.3%)
CIE-LABlab(42.77, 41.37, -71.19)
CIE-LCHlch(42.77, 82.34, 300.16°)
OKLaboklab(52.36% 0.0225 -0.2052)
OKLCHoklch(52.36% 0.206 276.3)
XYZxyz(19.4575, 13.0028, 69.8770)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152DD #DDDC51
analogous
#5198DD #5152DD #9651DD
triadic
#5152DD #DD5152 #52DD51
tetradic
#5152DD #DD5198 #DDDC51 #51DD96
square
#5152DD #DD5198 #DDDC51 #51DD96
split-complementary
#5152DD #DD9651 #98DD51
monochromatic
#1D1E96 #2729C9 #5152DD #8485E7 #B7B8F1

Accessibility & contrast

On white

5.83
#5152DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#5152DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152DD
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152DD#FFFFFF#000000##FFFFFF
##5152DD1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE1
Deuteranopia (green-blind)
#005FDA
Tritanopia (blue-blind)
#007590
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5152dd;
/* rgb */ color: rgb(81, 82, 221);
/* oklch */ color: oklch(52.4% 0.206 276.3);
Tailwind
colors: {
  custom: {
    50: '#9183e9',
    500: '#5152dd',
    950: '#000000',
  },
}
SCSS
$custom: #5152dd;
$custom-light: #9183e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5152dd",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 221
  },
  "hsl": {
    "h": 239.571,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.52357,
    "c": 0.20639,
    "h": 276.3
  },
  "luminance": 0.13004
}

Semantic roles & 50–950 ramp

primary
#5152DD
secondary
#E0E0AA
accent
#E93EEA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5152DD

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

Preview Lab → · Contrast checker → · Palette generator →

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