#5252CA#5252CA

#5252CA is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.9% C 0.181 H 277.8°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#5252CA
RGBrgb(82, 82, 202)
HSLhsl(240, 53%, 56%)
HSVhsv(240, 59%, 79%)
CMYKcmyk(59.4%, 59.4%, 0%, 20.8%)
CIE-LABlab(41.36, 35.32, -62.57)
CIE-LCHlch(41.36, 71.85, 299.44°)
OKLaboklab(50.88% 0.0246 -0.1798)
OKLCHoklch(50.88% 0.181 277.8)
XYZxyz(17.1542, 12.0914, 57.2956)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252CA #CACA52
analogous
#528ECA #5252CA #8E52CA
triadic
#5252CA #CA5252 #52CA52
tetradic
#5252CA #CA528E #CACA52 #52CA8E
square
#5252CA #CA528E #CACA52 #52CA8E
split-complementary
#5252CA #CA8E52 #8ECA52
monochromatic
#26267C #3434AB #5252CA #8181D8 #B0B0E7

Accessibility & contrast

On white

6.14
#5252CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5252CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252CA
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252CA#FFFFFF#000000##FFFFFF
##5252CA1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#006F86
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5252ca;
/* rgb */ color: rgb(82, 82, 202);
/* oklch */ color: oklch(50.9% 0.181 277.8);
Tailwind
colors: {
  custom: {
    50: '#8e83db',
    500: '#5252ca',
    950: '#000000',
  },
}
SCSS
$custom: #5252ca;
$custom-light: #8e83db;
$custom-dark: #000000;
JSON
{
  "hex": "#5252ca",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 240,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50881,
    "c": 0.18148,
    "h": 277.8
  },
  "luminance": 0.12093
}

Semantic roles & 50–950 ramp

primary
#5252CA
secondary
#D5D5A3
accent
#DD4BDD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #5252CA

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

Preview Lab → · Contrast checker → · Palette generator →

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