#5252E3#5252E3

#5252E3 is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 52.9% C 0.214 H 276.2°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#5252E3
RGBrgb(82, 82, 227)
HSLhsl(240, 72%, 61%)
HSVhsv(240, 64%, 89%)
CMYKcmyk(63.9%, 63.9%, 0%, 11%)
CIE-LABlab(43.32, 43.47, -73.70)
CIE-LCHlch(43.32, 85.56, 300.53°)
OKLaboklab(52.93% 0.0232 -0.2125)
OKLCHoklch(52.93% 0.214 276.2)
XYZxyz(20.3576, 13.3728, 74.1665)
Luminance0.1337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252E3 #E3E352
analogous
#529AE3 #5252E3 #9A52E3
triadic
#5252E3 #E35252 #52E352
tetradic
#5252E3 #E3529A #E3E352 #52E39A
square
#5252E3 #E3529A #E3E352 #52E39A
split-complementary
#5252E3 #E39A52 #9AE352
monochromatic
#1A1AA1 #2323D5 #5252E3 #8787EC #BBBBF4

Accessibility & contrast

On white

5.71
#5252E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#5252E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252E3
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252E3#FFFFFF#000000##FFFFFF
##5252E31.005.713.675.71
#FFFFFF5.711.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE8
Deuteranopia (green-blind)
#0060E0
Tritanopia (blue-blind)
#007793
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5252e3;
/* rgb */ color: rgb(82, 82, 227);
/* oklch */ color: oklch(52.9% 0.214 276.2);
Tailwind
colors: {
  custom: {
    50: '#9283ed',
    500: '#5252e3',
    950: '#000000',
  },
}
SCSS
$custom: #5252e3;
$custom-light: #9283ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5252e3",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 227
  },
  "hsl": {
    "h": 240,
    "s": 72.139,
    "l": 60.588
  },
  "oklch": {
    "l": 0.52928,
    "c": 0.21376,
    "h": 276.2
  },
  "luminance": 0.13374
}

Semantic roles & 50–950 ramp

primary
#5252E3
secondary
#E4E4AD
accent
#D411D4
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5252E3

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

Preview Lab → · Contrast checker → · Palette generator →

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