#5252DC#5252DC

#5252DC is a mid, highly saturated blue. Relative luminance 0.130; OKLCH L 52.3% C 0.205 H 276.7°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#5252DC
RGBrgb(82, 82, 220)
HSLhsl(240, 66%, 59%)
HSVhsv(240, 63%, 86%)
CMYKcmyk(62.7%, 62.7%, 0%, 13.7%)
CIE-LABlab(42.75, 41.19, -70.64)
CIE-LCHlch(42.75, 81.77, 300.25°)
OKLaboklab(52.34% 0.0238 -0.2035)
OKLCHoklch(52.34% 0.205 276.7)
XYZxyz(19.4110, 12.9942, 69.1815)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252DC #DCDC52
analogous
#5297DC #5252DC #9752DC
triadic
#5252DC #DC5252 #52DC52
tetradic
#5252DC #DC5297 #DCDC52 #52DC97
square
#5252DC #DC5297 #DCDC52 #52DC97
split-complementary
#5252DC #DC9752 #97DC52
monochromatic
#1E1E95 #2929C8 #5252DC #8585E6 #B8B8F1

Accessibility & contrast

On white

5.83
#5252DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#5252DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252DC
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252DC#FFFFFF#000000##FFFFFF
##5252DC1.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)
#006BE0
Deuteranopia (green-blind)
#005FD9
Tritanopia (blue-blind)
#00758F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5252dc;
/* rgb */ color: rgb(82, 82, 220);
/* oklch */ color: oklch(52.3% 0.205 276.7);
Tailwind
colors: {
  custom: {
    50: '#9183e8',
    500: '#5252dc',
    950: '#000000',
  },
}
SCSS
$custom: #5252dc;
$custom-light: #9183e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5252dc",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 220
  },
  "hsl": {
    "h": 240,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.5234,
    "c": 0.20489,
    "h": 276.7
  },
  "luminance": 0.12996
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5252DC

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

Preview Lab → · Contrast checker → · Palette generator →

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