#5252EB#5252EB

#5252EB is a mid, highly saturated blue. Relative luminance 0.138; OKLCH L 53.6% C 0.224 H 275.8°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#5252EB
RGBrgb(82, 82, 235)
HSLhsl(240, 79%, 62%)
HSVhsv(240, 65%, 92%)
CMYKcmyk(65.1%, 65.1%, 0%, 7.8%)
CIE-LABlab(43.98, 46.06, -77.14)
CIE-LCHlch(43.98, 89.85, 300.84°)
OKLaboklab(53.61% 0.0225 -0.2226)
OKLCHoklch(53.61% 0.224 275.8)
XYZxyz(21.4874, 13.8247, 80.1172)
Luminance0.1383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252EB #EBEB52
analogous
#529FEB #5252EB #9F52EB
triadic
#5252EB #EB5252 #52EB52
tetradic
#5252EB #EB529F #EBEB52 #52EB9F
square
#5252EB #EB529F #EBEB52 #52EB9F
split-complementary
#5252EB #EB9F52 #9FEB52
monochromatic
#1414AE #1B1BE5 #5252EB #8989F1 #C0C0F8

Accessibility & contrast

On white

5.58
#5252EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#5252EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252EB
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252EB#FFFFFF#000000##FFFFFF
##5252EB1.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FF0
Deuteranopia (green-blind)
#0061E8
Tritanopia (blue-blind)
#007A97
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5252eb;
/* rgb */ color: rgb(82, 82, 235);
/* oklch */ color: oklch(53.6% 0.224 275.8);
Tailwind
colors: {
  custom: {
    50: '#9483f3',
    500: '#5252eb',
    950: '#000000',
  },
}
SCSS
$custom: #5252eb;
$custom-light: #9483f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5252eb",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 235
  },
  "hsl": {
    "h": 240,
    "s": 79.275,
    "l": 62.157
  },
  "oklch": {
    "l": 0.53613,
    "c": 0.22374,
    "h": 275.8
  },
  "luminance": 0.13827
}

Semantic roles & 50–950 ramp

primary
#5252EB
secondary
#E8E8B0
accent
#DC0ADC
background
#F9F8FF
surface
#F2EFFE
border
#CCCAD6
text
#0F0B17
muted
#7E7C85

Preview Lab

Preview with #5252EB

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

Preview Lab → · Contrast checker → · Palette generator →

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