#5252D8#5252D8

#5252D8 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 52.0% C 0.200 H 276.9°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#5252D8
RGBrgb(82, 82, 216)
HSLhsl(240, 63%, 58%)
HSVhsv(240, 62%, 85%)
CMYKcmyk(62%, 62%, 0%, 15.3%)
CIE-LABlab(42.44, 39.89, -68.87)
CIE-LCHlch(42.44, 79.59, 300.08°)
OKLaboklab(52.01% 0.024 -0.1983)
OKLCHoklch(52.01% 0.2 276.9)
XYZxyz(18.8876, 12.7848, 66.4248)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252D8 #D8D852
analogous
#5295D8 #5252D8 #9552D8
triadic
#5252D8 #D85252 #52D852
tetradic
#5252D8 #D85295 #D8D852 #52D895
square
#5252D8 #D85295 #D8D852 #52D895
split-complementary
#5252D8 #D89552 #95D852
monochromatic
#20208F #2C2CC1 #5252D8 #8484E3 #B6B6EF

Accessibility & contrast

On white

5.90
#5252D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5252D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252D8
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252D8#FFFFFF#000000##FFFFFF
##5252D81.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADC
Deuteranopia (green-blind)
#005ED5
Tritanopia (blue-blind)
#00748D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5252d8;
/* rgb */ color: rgb(82, 82, 216);
/* oklch */ color: oklch(52.0% 0.200 276.9);
Tailwind
colors: {
  custom: {
    50: '#9083e5',
    500: '#5252d8',
    950: '#000000',
  },
}
SCSS
$custom: #5252d8;
$custom-light: #9083e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5252d8",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 216
  },
  "hsl": {
    "h": 240,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.52009,
    "c": 0.19977,
    "h": 276.9
  },
  "luminance": 0.12786
}

Semantic roles & 50–950 ramp

primary
#5252D8
secondary
#DDDDA8
accent
#E642E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5252D8

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

Preview Lab → · Contrast checker → · Palette generator →

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