#5252CB#5252CB

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

Color values

HEX#5252CB
RGBrgb(82, 82, 203)
HSLhsl(240, 54%, 56%)
HSVhsv(240, 60%, 80%)
CMYKcmyk(59.6%, 59.6%, 0%, 20.4%)
CIE-LABlab(41.44, 35.64, -63.02)
CIE-LCHlch(41.44, 72.41, 299.49°)
OKLaboklab(50.96% 0.0246 -0.1811)
OKLCHoklch(50.96% 0.183 277.7)
XYZxyz(17.2730, 12.1389, 57.9212)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252CB #CBCB52
analogous
#528ECB #5252CB #8E52CB
triadic
#5252CB #CB5252 #52CB52
tetradic
#5252CB #CB528E #CBCB52 #52CB8E
square
#5252CB #CB528E #CBCB52 #52CB8E
split-complementary
#5252CB #CB8E52 #8ECB52
monochromatic
#26267D #3434AC #5252CB #8181D9 #B0B0E7

Accessibility & contrast

On white

6.13
#5252CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5252CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252CB
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252CB#FFFFFF#000000##FFFFFF
##5252CB1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5252cb;
/* rgb */ color: rgb(82, 82, 203);
/* oklch */ color: oklch(51.0% 0.183 277.7);
Tailwind
colors: {
  custom: {
    50: '#8e83dc',
    500: '#5252cb',
    950: '#000000',
  },
}
SCSS
$custom: #5252cb;
$custom-light: #8e83dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5252cb",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 240,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5096,
    "c": 0.18281,
    "h": 277.7
  },
  "luminance": 0.1214
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5252CB

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

Preview Lab → · Contrast checker → · Palette generator →

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