#5252A7#5252A7

#5252A7 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.3% C 0.133 H 280.2°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#5252A7
RGBrgb(82, 82, 167)
HSLhsl(240, 34%, 49%)
HSVhsv(240, 51%, 65%)
CMYKcmyk(50.9%, 50.9%, 0%, 34.5%)
CIE-LABlab(38.93, 23.92, -45.97)
CIE-LCHlch(38.93, 51.82, 297.49°)
OKLaboklab(48.3% 0.0236 -0.131)
OKLCHoklch(48.3% 0.133 280.2)
XYZxyz(13.4699, 10.6177, 37.8914)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252A7 #A7A752
analogous
#527DA7 #5252A7 #7D52A7
triadic
#5252A7 #A75252 #52A752
tetradic
#5252A7 #A7527D #A7A752 #52A77D
square
#5252A7 #A7527D #A7A752 #52A77D
split-complementary
#5252A7 #A77D52 #7DA752
monochromatic
#2A2A55 #3E3E7E #5252A7 #7979BD #A2A2D1

Accessibility & contrast

On white

6.72
#5252A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5252A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252A7
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252A7#FFFFFF#000000##FFFFFF
##5252A71.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295FAA
Deuteranopia (green-blind)
#2158A5
Tritanopia (blue-blind)
#316574
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5252a7;
/* rgb */ color: rgb(82, 82, 167);
/* oklch */ color: oklch(48.3% 0.133 280.2);
Tailwind
colors: {
  custom: {
    50: '#8982c2',
    500: '#5252a7',
    950: '#000000',
  },
}
SCSS
$custom: #5252a7;
$custom-light: #8982c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5252a7",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 167
  },
  "hsl": {
    "h": 240,
    "s": 34.137,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48296,
    "c": 0.13309,
    "h": 280.2
  },
  "luminance": 0.10618
}

Semantic roles & 50–950 ramp

primary
#5252A7
secondary
#BFBF96
accent
#CA5ECA
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #5252A7

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

Preview Lab → · Contrast checker → · Palette generator →

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