#5252AB#5252AB

#5252AB is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.6% C 0.139 H 279.9°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#5252AB
RGBrgb(82, 82, 171)
HSLhsl(240, 35%, 50%)
HSVhsv(240, 52%, 67%)
CMYKcmyk(52%, 52%, 0%, 32.9%)
CIE-LABlab(39.19, 25.21, -47.93)
CIE-LCHlch(39.19, 54.16, 297.74°)
OKLaboklab(48.57% 0.0239 -0.1368)
OKLCHoklch(48.57% 0.139 279.9)
XYZxyz(13.8454, 10.7679, 39.8690)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252AB #ABAB52
analogous
#527FAB #5252AB #7F52AB
triadic
#5252AB #AB5252 #52AB52
tetradic
#5252AB #AB527F #ABAB52 #52AB7F
square
#5252AB #AB527F #ABAB52 #52AB7F
split-complementary
#5252AB #AB7F52 #7FAB52
monochromatic
#2A2A58 #3E3E82 #5252AB #7B7BC0 #A4A4D3

Accessibility & contrast

On white

6.66
#5252AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5252AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252AB
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252AB#FFFFFF#000000##FFFFFF
##5252AB1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2560AE
Deuteranopia (green-blind)
#1B59A9
Tritanopia (blue-blind)
#2D6676
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5252ab;
/* rgb */ color: rgb(82, 82, 171);
/* oklch */ color: oklch(48.6% 0.139 279.9);
Tailwind
colors: {
  custom: {
    50: '#8982c4',
    500: '#5252ab',
    950: '#000000',
  },
}
SCSS
$custom: #5252ab;
$custom-light: #8982c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5252ab",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 171
  },
  "hsl": {
    "h": 240,
    "s": 35.178,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48573,
    "c": 0.13883,
    "h": 279.9
  },
  "luminance": 0.10769
}

Semantic roles & 50–950 ramp

primary
#5252AB
secondary
#C1C198
accent
#CB5DCB
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #5252AB

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

Preview Lab → · Contrast checker → · Palette generator →

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