#5252E2#5252E2

#5252E2 is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 52.8% C 0.212 H 276.3°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#5252E2
RGBrgb(82, 82, 226)
HSLhsl(240, 71%, 60%)
HSVhsv(240, 64%, 89%)
CMYKcmyk(63.7%, 63.7%, 0%, 11.4%)
CIE-LABlab(43.24, 43.15, -73.26)
CIE-LCHlch(43.24, 85.02, 300.49°)
OKLaboklab(52.84% 0.0233 -0.2112)
OKLCHoklch(52.84% 0.213 276.3)
XYZxyz(20.2200, 13.3177, 73.4418)
Luminance0.1332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252E2 #E2E252
analogous
#529AE2 #5252E2 #9A52E2
triadic
#5252E2 #E25252 #52E252
tetradic
#5252E2 #E2529A #E2E252 #52E29A
square
#5252E2 #E2529A #E2E252 #52E29A
split-complementary
#5252E2 #E29A52 #9AE252
monochromatic
#1B1B9F #2323D3 #5252E2 #8686EB #BBBBF4

Accessibility & contrast

On white

5.73
#5252E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5252E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252E2
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252E2#FFFFFF#000000##FFFFFF
##5252E21.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE7
Deuteranopia (green-blind)
#0060DF
Tritanopia (blue-blind)
#007793
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5252e2;
/* rgb */ color: rgb(82, 82, 226);
/* oklch */ color: oklch(52.8% 0.212 276.3);
Tailwind
colors: {
  custom: {
    50: '#9283ec',
    500: '#5252e2',
    950: '#000000',
  },
}
SCSS
$custom: #5252e2;
$custom-light: #9283ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5252e2",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 226
  },
  "hsl": {
    "h": 240,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.52843,
    "c": 0.2125,
    "h": 276.3
  },
  "luminance": 0.13319
}

Semantic roles & 50–950 ramp

primary
#5252E2
secondary
#E3E3AC
accent
#D312D3
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5252E2

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

Preview Lab → · Contrast checker → · Palette generator →

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