#5252BE#5252BE

#5252BE is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.0% C 0.165 H 278.6°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#5252BE
RGBrgb(82, 82, 190)
HSLhsl(240, 45%, 53%)
HSVhsv(240, 57%, 75%)
CMYKcmyk(56.8%, 56.8%, 0%, 25.5%)
CIE-LABlab(40.48, 31.39, -57.02)
CIE-LCHlch(40.48, 65.09, 298.83°)
OKLaboklab(49.95% 0.0247 -0.1635)
OKLCHoklch(49.95% 0.165 278.6)
XYZxyz(15.7883, 11.5451, 50.1017)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252BE #BEBE52
analogous
#5288BE #5252BE #8852BE
triadic
#5252BE #BE5252 #52BE52
tetradic
#5252BE #BE5288 #BEBE52 #52BE88
square
#5252BE #BE5288 #BEBE52 #52BE88
split-complementary
#5252BE #BE8852 #88BE52
monochromatic
#29296D #3A3A99 #5252BE #7E7ECF #ABABDF

Accessibility & contrast

On white

6.35
#5252BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5252BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252BE
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252BE#FFFFFF#000000##FFFFFF
##5252BE1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C2
Deuteranopia (green-blind)
#005BBC
Tritanopia (blue-blind)
#156B80
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5252be;
/* rgb */ color: rgb(82, 82, 190);
/* oklch */ color: oklch(50.0% 0.165 278.6);
Tailwind
colors: {
  custom: {
    50: '#8c82d2',
    500: '#5252be',
    950: '#000000',
  },
}
SCSS
$custom: #5252be;
$custom-light: #8c82d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5252be",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 190
  },
  "hsl": {
    "h": 240,
    "s": 45.378,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49954,
    "c": 0.16534,
    "h": 278.6
  },
  "luminance": 0.11546
}

Semantic roles & 50–950 ramp

primary
#5252BE
secondary
#CDCD9F
accent
#D553D5
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5252BE

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

Preview Lab → · Contrast checker → · Palette generator →

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