#5252C8#5252C8

#5252C8 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.7% C 0.179 H 277.9°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#5252C8
RGBrgb(82, 82, 200)
HSLhsl(240, 52%, 55%)
HSVhsv(240, 59%, 78%)
CMYKcmyk(59%, 59%, 0%, 21.6%)
CIE-LABlab(41.21, 34.66, -61.65)
CIE-LCHlch(41.21, 70.73, 299.35°)
OKLaboklab(50.72% 0.0246 -0.1771)
OKLCHoklch(50.72% 0.179 277.9)
XYZxyz(16.9190, 11.9973, 56.0565)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252C8 #C8C852
analogous
#528DC8 #5252C8 #8D52C8
triadic
#5252C8 #C85252 #52C852
tetradic
#5252C8 #C8528D #C8C852 #52C88D
square
#5252C8 #C8528D #C8C852 #52C88D
split-complementary
#5252C8 #C88D52 #8DC852
monochromatic
#272779 #3535A8 #5252C8 #8080D7 #AFAFE6

Accessibility & contrast

On white

6.18
#5252C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5252C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252C8
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252C8#FFFFFF#000000##FFFFFF
##5252C81.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#005CC6
Tritanopia (blue-blind)
#006E85
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5252c8;
/* rgb */ color: rgb(82, 82, 200);
/* oklch */ color: oklch(50.7% 0.179 277.9);
Tailwind
colors: {
  custom: {
    50: '#8e83da',
    500: '#5252c8',
    950: '#000000',
  },
}
SCSS
$custom: #5252c8;
$custom-light: #8e83da;
$custom-dark: #000000;
JSON
{
  "hex": "#5252c8",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 200
  },
  "hsl": {
    "h": 240,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.50724,
    "c": 0.17883,
    "h": 277.9
  },
  "luminance": 0.11999
}

Semantic roles & 50–950 ramp

primary
#5252C8
secondary
#D4D4A2
accent
#DB4DDB
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #5252C8

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

Preview Lab → · Contrast checker → · Palette generator →

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