#5252EA#5252EA

#5252EA is a mid, highly saturated blue. Relative luminance 0.138; OKLCH L 53.5% C 0.222 H 275.8°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#5252EA
RGBrgb(82, 82, 234)
HSLhsl(240, 78%, 62%)
HSVhsv(240, 65%, 92%)
CMYKcmyk(65%, 65%, 0%, 8.2%)
CIE-LABlab(43.90, 45.73, -76.72)
CIE-LCHlch(43.90, 89.31, 300.80°)
OKLaboklab(53.53% 0.0226 -0.2213)
OKLCHoklch(53.53% 0.222 275.8)
XYZxyz(21.3434, 13.7671, 79.3585)
Luminance0.1377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252EA #EAEA52
analogous
#529EEA #5252EA #9E52EA
triadic
#5252EA #EA5252 #52EA52
tetradic
#5252EA #EA529E #EAEA52 #52EA9E
square
#5252EA #EA529E #EAEA52 #52EA9E
split-complementary
#5252EA #EA9E52 #9EEA52
monochromatic
#1515AD #1C1CE3 #5252EA #8989F1 #BFBFF7

Accessibility & contrast

On white

5.59
#5252EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#5252EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252EA
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252EA#FFFFFF#000000##FFFFFF
##5252EA1.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEF
Deuteranopia (green-blind)
#0061E7
Tritanopia (blue-blind)
#007A97
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5252ea;
/* rgb */ color: rgb(82, 82, 234);
/* oklch */ color: oklch(53.5% 0.222 275.8);
Tailwind
colors: {
  custom: {
    50: '#9483f2',
    500: '#5252ea',
    950: '#000000',
  },
}
SCSS
$custom: #5252ea;
$custom-light: #9483f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5252ea",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 234
  },
  "hsl": {
    "h": 240,
    "s": 78.351,
    "l": 61.961
  },
  "oklch": {
    "l": 0.53527,
    "c": 0.22249,
    "h": 275.8
  },
  "luminance": 0.13769
}

Semantic roles & 50–950 ramp

primary
#5252EA
secondary
#E8E8B0
accent
#DB0BDB
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0B17
muted
#7E7C85

Preview Lab

Preview with #5252EA

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

Preview Lab → · Contrast checker → · Palette generator →

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