#5252CC#5252CC

#5252CC is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.0% C 0.184 H 277.7°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5252CC
RGBrgb(82, 82, 204)
HSLhsl(240, 54%, 56%)
HSVhsv(240, 60%, 80%)
CMYKcmyk(59.8%, 59.8%, 0%, 20%)
CIE-LABlab(41.51, 35.97, -63.48)
CIE-LCHlch(41.51, 72.96, 299.54°)
OKLaboklab(51.04% 0.0245 -0.1825)
OKLCHoklch(51.04% 0.184 277.7)
XYZxyz(17.3926, 12.1868, 58.5508)
Luminance0.1219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252CC #CCCC52
analogous
#528FCC #5252CC #8F52CC
triadic
#5252CC #CC5252 #52CC52
tetradic
#5252CC #CC528F #CCCC52 #52CC8F
square
#5252CC #CC528F #CCCC52 #52CC8F
split-complementary
#5252CC #CC8F52 #8FCC52
monochromatic
#25257E #3333AE #5252CC #8181DA #B1B1E8

Accessibility & contrast

On white

6.11
#5252CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5252CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252CC
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252CC#FFFFFF#000000##FFFFFF
##5252CC1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#005DCA
Tritanopia (blue-blind)
#007087
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5252cc;
/* rgb */ color: rgb(82, 82, 204);
/* oklch */ color: oklch(51.0% 0.184 277.7);
Tailwind
colors: {
  custom: {
    50: '#8e83dc',
    500: '#5252cc',
    950: '#000000',
  },
}
SCSS
$custom: #5252cc;
$custom-light: #8e83dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5252cc",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 240,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51039,
    "c": 0.18413,
    "h": 277.7
  },
  "luminance": 0.12188
}

Semantic roles & 50–950 ramp

primary
#5252CC
secondary
#D6D6A4
accent
#DE4ADE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #5252CC

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

Preview Lab → · Contrast checker → · Palette generator →

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