#5252BC#5252BC

#5252BC is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.8% C 0.163 H 278.7°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#5252BC
RGBrgb(82, 82, 188)
HSLhsl(240, 44%, 53%)
HSVhsv(240, 56%, 74%)
CMYKcmyk(56.4%, 56.4%, 0%, 26.3%)
CIE-LABlab(40.34, 30.74, -56.08)
CIE-LCHlch(40.34, 63.95, 298.73°)
OKLaboklab(49.8% 0.0246 -0.1607)
OKLCHoklch(49.8% 0.163 278.7)
XYZxyz(15.5712, 11.4582, 48.9583)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252BC #BCBC52
analogous
#5287BC #5252BC #8752BC
triadic
#5252BC #BC5252 #52BC52
tetradic
#5252BC #BC5287 #BCBC52 #52BC87
square
#5252BC #BC5287 #BCBC52 #52BC87
split-complementary
#5252BC #BC8752 #87BC52
monochromatic
#29296A #3A3A97 #5252BC #7E7ECD #AAAADE

Accessibility & contrast

On white

6.38
#5252BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5252BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252BC
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252BC#FFFFFF#000000##FFFFFF
##5252BC1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C0
Deuteranopia (green-blind)
#005BBA
Tritanopia (blue-blind)
#196B7F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5252bc;
/* rgb */ color: rgb(82, 82, 188);
/* oklch */ color: oklch(49.8% 0.163 278.7);
Tailwind
colors: {
  custom: {
    50: '#8c82d1',
    500: '#5252bc',
    950: '#000000',
  },
}
SCSS
$custom: #5252bc;
$custom-light: #8c82d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5252bc",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 240,
    "s": 44.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49804,
    "c": 0.1626,
    "h": 278.7
  },
  "luminance": 0.11459
}

Semantic roles & 50–950 ramp

primary
#5252BC
secondary
#CCCC9E
accent
#D454D4
background
#F9F8FC
surface
#F1EFF9
border
#CBCAD2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5252BC

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

Preview Lab → · Contrast checker → · Palette generator →

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