#5252E1#5252E1

#5252E1 is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 52.8% C 0.211 H 276.4°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#5252E1
RGBrgb(82, 82, 225)
HSLhsl(240, 70%, 60%)
HSVhsv(240, 64%, 88%)
CMYKcmyk(63.6%, 63.6%, 0%, 11.8%)
CIE-LABlab(43.16, 42.82, -72.83)
CIE-LCHlch(43.16, 84.48, 300.45°)
OKLaboklab(52.76% 0.0234 -0.2099)
OKLCHoklch(52.76% 0.211 276.4)
XYZxyz(20.0831, 13.2630, 72.7212)
Luminance0.1326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252E1 #E1E152
analogous
#5299E1 #5252E1 #9952E1
triadic
#5252E1 #E15252 #52E152
tetradic
#5252E1 #E15299 #E1E152 #52E199
square
#5252E1 #E15299 #E1E152 #52E199
split-complementary
#5252E1 #E19952 #99E152
monochromatic
#1B1B9D #2424D1 #5252E1 #8686EA #BABAF3

Accessibility & contrast

On white

5.75
#5252E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#5252E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252E1
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252E1#FFFFFF#000000##FFFFFF
##5252E11.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE6
Deuteranopia (green-blind)
#0060DE
Tritanopia (blue-blind)
#007792
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5252e1;
/* rgb */ color: rgb(82, 82, 225);
/* oklch */ color: oklch(52.8% 0.211 276.4);
Tailwind
colors: {
  custom: {
    50: '#9283eb',
    500: '#5252e1',
    950: '#000000',
  },
}
SCSS
$custom: #5252e1;
$custom-light: #9283eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5252e1",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 225
  },
  "hsl": {
    "h": 240,
    "s": 70.443,
    "l": 60.196
  },
  "oklch": {
    "l": 0.52759,
    "c": 0.21124,
    "h": 276.4
  },
  "luminance": 0.13265
}

Semantic roles & 50–950 ramp

primary
#5252E1
secondary
#E3E3AC
accent
#D213D2
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5252E1

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

Preview Lab → · Contrast checker → · Palette generator →

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