#5252D0#5252D0

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

Color values

HEX#5252D0
RGBrgb(82, 82, 208)
HSLhsl(240, 57%, 57%)
HSVhsv(240, 61%, 82%)
CMYKcmyk(60.6%, 60.6%, 0%, 18.4%)
CIE-LABlab(41.82, 37.28, -65.29)
CIE-LCHlch(41.82, 75.18, 299.73°)
OKLaboklab(51.36% 0.0244 -0.1878)
OKLCHoklch(51.36% 0.189 277.4)
XYZxyz(17.8785, 12.3811, 61.1099)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252D0 #D0D052
analogous
#5291D0 #5252D0 #9152D0
triadic
#5252D0 #D05252 #52D052
tetradic
#5252D0 #D05291 #D0D052 #52D091
square
#5252D0 #D05291 #D0D052 #52D091
split-complementary
#5252D0 #D09152 #91D052
monochromatic
#242484 #3131B4 #5252D0 #8282DD #B2B2EA

Accessibility & contrast

On white

6.04
#5252D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5252D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252D0
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252D0#FFFFFF#000000##FFFFFF
##5252D01.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D4
Deuteranopia (green-blind)
#005DCD
Tritanopia (blue-blind)
#007189
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5252d0;
/* rgb */ color: rgb(82, 82, 208);
/* oklch */ color: oklch(51.4% 0.189 277.4);
Tailwind
colors: {
  custom: {
    50: '#8f83df',
    500: '#5252d0',
    950: '#000000',
  },
}
SCSS
$custom: #5252d0;
$custom-light: #8f83df;
$custom-dark: #000000;
JSON
{
  "hex": "#5252d0",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 208
  },
  "hsl": {
    "h": 240,
    "s": 57.273,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51358,
    "c": 0.18939,
    "h": 277.4
  },
  "luminance": 0.12382
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5252D0

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

Preview Lab → · Contrast checker → · Palette generator →

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