#5252B2#5252B2

#5252B2 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.1% C 0.149 H 279.4°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#5252B2
RGBrgb(82, 82, 178)
HSLhsl(240, 38%, 51%)
HSVhsv(240, 54%, 70%)
CMYKcmyk(53.9%, 53.9%, 0%, 30.2%)
CIE-LABlab(39.65, 27.48, -51.32)
CIE-LCHlch(39.65, 58.22, 298.16°)
OKLaboklab(49.07% 0.0243 -0.1467)
OKLCHoklch(49.07% 0.149 279.4)
XYZxyz(14.5303, 11.0419, 43.4765)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252B2 #B2B252
analogous
#5282B2 #5252B2 #8252B2
triadic
#5252B2 #B25252 #52B252
tetradic
#5252B2 #B25282 #B2B252 #52B282
square
#5252B2 #B25282 #B2B252 #52B282
split-complementary
#5252B2 #B28252 #82B252
monochromatic
#2A2A5F #3D3D8A #5252B2 #7C7CC5 #A7A7D8

Accessibility & contrast

On white

6.54
#5252B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5252B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252B2
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252B2#FFFFFF#000000##FFFFFF
##5252B21.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A61B5
Deuteranopia (green-blind)
#075AB0
Tritanopia (blue-blind)
#27687A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5252b2;
/* rgb */ color: rgb(82, 82, 178);
/* oklch */ color: oklch(49.1% 0.149 279.4);
Tailwind
colors: {
  custom: {
    50: '#8a82ca',
    500: '#5252b2',
    950: '#000000',
  },
}
SCSS
$custom: #5252b2;
$custom-light: #8a82ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5252b2",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 240,
    "s": 38.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49069,
    "c": 0.14873,
    "h": 279.4
  },
  "luminance": 0.11043
}

Semantic roles & 50–950 ramp

primary
#5252B2
secondary
#C5C59B
accent
#CE59CE
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #5252B2

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

Preview Lab → · Contrast checker → · Palette generator →

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