#5252D2#5252D2

#5252D2 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.5% C 0.192 H 277.3°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#5252D2
RGBrgb(82, 82, 210)
HSLhsl(240, 59%, 57%)
HSVhsv(240, 61%, 82%)
CMYKcmyk(61%, 61%, 0%, 17.6%)
CIE-LABlab(41.97, 37.93, -66.19)
CIE-LCHlch(41.97, 76.29, 299.82°)
OKLaboklab(51.52% 0.0243 -0.1905)
OKLCHoklch(51.52% 0.192 277.3)
XYZxyz(18.1261, 12.4802, 62.4140)
Luminance0.1248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252D2 #D2D252
analogous
#5292D2 #5252D2 #9252D2
triadic
#5252D2 #D25252 #52D252
tetradic
#5252D2 #D25292 #D2D252 #52D292
square
#5252D2 #D25292 #D2D252 #52D292
split-complementary
#5252D2 #D29252 #92D252
monochromatic
#232387 #3030B7 #5252D2 #8383DF #B3B3EB

Accessibility & contrast

On white

6.01
#5252D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5252D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252D2
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252D2#FFFFFF#000000##FFFFFF
##5252D21.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#005ECF
Tritanopia (blue-blind)
#00728A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5252d2;
/* rgb */ color: rgb(82, 82, 210);
/* oklch */ color: oklch(51.5% 0.192 277.3);
Tailwind
colors: {
  custom: {
    50: '#8f83e1',
    500: '#5252d2',
    950: '#000000',
  },
}
SCSS
$custom: #5252d2;
$custom-light: #8f83e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5252d2",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 210
  },
  "hsl": {
    "h": 240,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.5152,
    "c": 0.19201,
    "h": 277.3
  },
  "luminance": 0.12482
}

Semantic roles & 50–950 ramp

primary
#5252D2
secondary
#DADAA6
accent
#E246E2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5252D2

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

Preview Lab → · Contrast checker → · Palette generator →

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