#5252D1#5252D1

#5252D1 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.4% C 0.191 H 277.3°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#5252D1
RGBrgb(82, 82, 209)
HSLhsl(240, 58%, 57%)
HSVhsv(240, 61%, 82%)
CMYKcmyk(60.8%, 60.8%, 0%, 18%)
CIE-LABlab(41.89, 37.61, -65.74)
CIE-LCHlch(41.89, 75.74, 299.77°)
OKLaboklab(51.44% 0.0244 -0.1891)
OKLCHoklch(51.44% 0.191 277.3)
XYZxyz(18.0019, 12.4305, 61.7599)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252D1 #D1D152
analogous
#5292D1 #5252D1 #9252D1
triadic
#5252D1 #D15252 #52D152
tetradic
#5252D1 #D15292 #D1D152 #52D192
square
#5252D1 #D15292 #D1D152 #52D192
split-complementary
#5252D1 #D19252 #92D152
monochromatic
#232385 #3030B6 #5252D1 #8282DE #B3B3EB

Accessibility & contrast

On white

6.02
#5252D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#5252D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252D1
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252D1#FFFFFF#000000##FFFFFF
##5252D11.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D5
Deuteranopia (green-blind)
#005DCE
Tritanopia (blue-blind)
#00718A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5252d1;
/* rgb */ color: rgb(82, 82, 209);
/* oklch */ color: oklch(51.4% 0.191 277.3);
Tailwind
colors: {
  custom: {
    50: '#8f83e0',
    500: '#5252d1',
    950: '#000000',
  },
}
SCSS
$custom: #5252d1;
$custom-light: #8f83e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5252d1",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 209
  },
  "hsl": {
    "h": 240,
    "s": 57.991,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51439,
    "c": 0.19069,
    "h": 277.3
  },
  "luminance": 0.12432
}

Semantic roles & 50–950 ramp

primary
#5252D1
secondary
#D9D9A6
accent
#E147E1
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5252D1

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

Preview Lab → · Contrast checker → · Palette generator →

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