#5252CD#5252CD

#5252CD is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.1% C 0.185 H 277.6°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#5252CD
RGBrgb(82, 82, 205)
HSLhsl(240, 55%, 56%)
HSVhsv(240, 60%, 80%)
CMYKcmyk(60%, 60%, 0%, 19.6%)
CIE-LABlab(41.59, 36.30, -63.93)
CIE-LCHlch(41.59, 73.52, 299.59°)
OKLaboklab(51.12% 0.0245 -0.1838)
OKLCHoklch(51.12% 0.185 277.6)
XYZxyz(17.5129, 12.2349, 59.1845)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252CD #CDCD52
analogous
#5290CD #5252CD #9052CD
triadic
#5252CD #CD5252 #52CD52
tetradic
#5252CD #CD5290 #CDCD52 #52CD90
square
#5252CD #CD5290 #CDCD52 #52CD90
split-complementary
#5252CD #CD9052 #90CD52
monochromatic
#252580 #3333AF #5252CD #8181DB #B1B1E8

Accessibility & contrast

On white

6.09
#5252CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5252CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252CD
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252CD#FFFFFF#000000##FFFFFF
##5252CD1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#005DCB
Tritanopia (blue-blind)
#007088
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5252cd;
/* rgb */ color: rgb(82, 82, 205);
/* oklch */ color: oklch(51.1% 0.185 277.6);
Tailwind
colors: {
  custom: {
    50: '#8e83dd',
    500: '#5252cd',
    950: '#000000',
  },
}
SCSS
$custom: #5252cd;
$custom-light: #8e83dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5252cd",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 240,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51118,
    "c": 0.18545,
    "h": 277.6
  },
  "luminance": 0.12236
}

Semantic roles & 50–950 ramp

primary
#5252CD
secondary
#D7D7A4
accent
#DE49DE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #5252CD

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

Preview Lab → · Contrast checker → · Palette generator →

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