#5252DB#5252DB

#5252DB is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.3% C 0.204 H 276.7°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#5252DB
RGBrgb(82, 82, 219)
HSLhsl(240, 66%, 59%)
HSVhsv(240, 63%, 86%)
CMYKcmyk(62.6%, 62.6%, 0%, 14.1%)
CIE-LABlab(42.67, 40.87, -70.20)
CIE-LCHlch(42.67, 81.23, 300.21°)
OKLaboklab(52.26% 0.0238 -0.2022)
OKLCHoklch(52.26% 0.204 276.7)
XYZxyz(19.2790, 12.9413, 68.4861)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252DB #DBDB52
analogous
#5297DB #5252DB #9752DB
triadic
#5252DB #DB5252 #52DB52
tetradic
#5252DB #DB5297 #DBDB52 #52DB97
square
#5252DB #DB5297 #DBDB52 #52DB97
split-complementary
#5252DB #DB9752 #97DB52
monochromatic
#1F1F94 #2929C6 #5252DB #8585E6 #B7B7F0

Accessibility & contrast

On white

5.85
#5252DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#5252DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252DB
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252DB#FFFFFF#000000##FFFFFF
##5252DB1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDF
Deuteranopia (green-blind)
#005FD8
Tritanopia (blue-blind)
#00758F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5252db;
/* rgb */ color: rgb(82, 82, 219);
/* oklch */ color: oklch(52.3% 0.204 276.7);
Tailwind
colors: {
  custom: {
    50: '#9183e7',
    500: '#5252db',
    950: '#000000',
  },
}
SCSS
$custom: #5252db;
$custom-light: #9183e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5252db",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 219
  },
  "hsl": {
    "h": 240,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52257,
    "c": 0.20362,
    "h": 276.7
  },
  "luminance": 0.12943
}

Semantic roles & 50–950 ramp

primary
#5252DB
secondary
#DFDFAA
accent
#E93FE9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5252DB

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

Preview Lab → · Contrast checker → · Palette generator →

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