#5252CE#5252CE

#5252CE is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.2% C 0.187 H 277.5°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#5252CE
RGBrgb(82, 82, 206)
HSLhsl(240, 56%, 56%)
HSVhsv(240, 60%, 81%)
CMYKcmyk(60.2%, 60.2%, 0%, 19.2%)
CIE-LABlab(41.66, 36.63, -64.39)
CIE-LCHlch(41.66, 74.08, 299.63°)
OKLaboklab(51.2% 0.0245 -0.1851)
OKLCHoklch(51.2% 0.187 277.5)
XYZxyz(17.6340, 12.2833, 59.8222)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252CE #CECE52
analogous
#5290CE #5252CE #9052CE
triadic
#5252CE #CE5252 #52CE52
tetradic
#5252CE #CE5290 #CECE52 #52CE90
square
#5252CE #CE5290 #CECE52 #52CE90
split-complementary
#5252CE #CE9052 #90CE52
monochromatic
#252581 #3232B1 #5252CE #8282DC #B1B1E9

Accessibility & contrast

On white

6.07
#5252CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5252CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252CE
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252CE#FFFFFF#000000##FFFFFF
##5252CE1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D2
Deuteranopia (green-blind)
#005DCC
Tritanopia (blue-blind)
#007088
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5252ce;
/* rgb */ color: rgb(82, 82, 206);
/* oklch */ color: oklch(51.2% 0.187 277.5);
Tailwind
colors: {
  custom: {
    50: '#8f83de',
    500: '#5252ce',
    950: '#000000',
  },
}
SCSS
$custom: #5252ce;
$custom-light: #8f83de;
$custom-dark: #000000;
JSON
{
  "hex": "#5252ce",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 206
  },
  "hsl": {
    "h": 240,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51198,
    "c": 0.18676,
    "h": 277.5
  },
  "luminance": 0.12285
}

Semantic roles & 50–950 ramp

primary
#5252CE
secondary
#D7D7A4
accent
#DF49DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5252CE

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

Preview Lab → · Contrast checker → · Palette generator →

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