#5252DD#5252DD

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

Color values

HEX#5252DD
RGBrgb(82, 82, 221)
HSLhsl(240, 67%, 59%)
HSVhsv(240, 63%, 87%)
CMYKcmyk(62.9%, 62.9%, 0%, 13.3%)
CIE-LABlab(42.83, 41.52, -71.08)
CIE-LCHlch(42.83, 82.32, 300.29°)
OKLaboklab(52.42% 0.0237 -0.2048)
OKLCHoklch(52.42% 0.206 276.6)
XYZxyz(19.5439, 13.0473, 69.8811)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252DD #DDDD52
analogous
#5298DD #5252DD #9852DD
triadic
#5252DD #DD5252 #52DD52
tetradic
#5252DD #DD5298 #DDDD52 #52DD98
square
#5252DD #DD5298 #DDDD52 #52DD98
split-complementary
#5252DD #DD9852 #98DD52
monochromatic
#1E1E97 #2828CA #5252DD #8585E7 #B8B8F1

Accessibility & contrast

On white

5.82
#5252DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5252DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252DD
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252DD#FFFFFF#000000##FFFFFF
##5252DD1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.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: #5252dd;
/* rgb */ color: rgb(82, 82, 221);
/* oklch */ color: oklch(52.4% 0.206 276.6);
Tailwind
colors: {
  custom: {
    50: '#9183e9',
    500: '#5252dd',
    950: '#000000',
  },
}
SCSS
$custom: #5252dd;
$custom-light: #9183e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5252dd",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 221
  },
  "hsl": {
    "h": 240,
    "s": 67.15,
    "l": 59.412
  },
  "oklch": {
    "l": 0.52423,
    "c": 0.20616,
    "h": 276.6
  },
  "luminance": 0.13049
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5252DD

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

Preview Lab → · Contrast checker → · Palette generator →

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