#5252DF#5252DF

#5252DF is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.6% C 0.209 H 276.5°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#5252DF
RGBrgb(82, 82, 223)
HSLhsl(240, 69%, 60%)
HSVhsv(240, 63%, 87%)
CMYKcmyk(63.2%, 63.2%, 0%, 12.5%)
CIE-LABlab(43.00, 42.17, -71.95)
CIE-LCHlch(43.00, 83.40, 300.37°)
OKLaboklab(52.59% 0.0235 -0.2074)
OKLCHoklch(52.59% 0.209 276.5)
XYZxyz(19.8119, 13.1545, 71.2928)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252DF #DFDF52
analogous
#5299DF #5252DF #9952DF
triadic
#5252DF #DF5252 #52DF52
tetradic
#5252DF #DF5299 #DFDF52 #52DF99
square
#5252DF #DF5299 #DFDF52 #52DF99
split-complementary
#5252DF #DF9952 #99DF52
monochromatic
#1D1D9A #2626CE #5252DF #8686E9 #B9B9F2

Accessibility & contrast

On white

5.78
#5252DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#5252DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252DF
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252DF#FFFFFF#000000##FFFFFF
##5252DF1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE3
Deuteranopia (green-blind)
#005FDC
Tritanopia (blue-blind)
#007691
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5252df;
/* rgb */ color: rgb(82, 82, 223);
/* oklch */ color: oklch(52.6% 0.209 276.5);
Tailwind
colors: {
  custom: {
    50: '#9283ea',
    500: '#5252df',
    950: '#000000',
  },
}
SCSS
$custom: #5252df;
$custom-light: #9283ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5252df",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 223
  },
  "hsl": {
    "h": 240,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.52591,
    "c": 0.20871,
    "h": 276.5
  },
  "luminance": 0.13156
}

Semantic roles & 50–950 ramp

primary
#5252DF
secondary
#E2E2AB
accent
#EC3CEC
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5252DF

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

Preview Lab → · Contrast checker → · Palette generator →

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