#5252AF#5252AF

#5252AF is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.9% C 0.145 H 279.6°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#5252AF
RGBrgb(82, 82, 175)
HSLhsl(240, 37%, 50%)
HSVhsv(240, 53%, 69%)
CMYKcmyk(53.1%, 53.1%, 0%, 31.4%)
CIE-LABlab(39.45, 26.50, -49.88)
CIE-LCHlch(39.45, 56.48, 297.98°)
OKLaboklab(48.85% 0.0242 -0.1425)
OKLCHoklch(48.85% 0.145 279.6)
XYZxyz(14.2324, 10.9227, 41.9075)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5252AF #AFAF52
analogous
#5280AF #5252AF #8052AF
triadic
#5252AF #AF5252 #52AF52
tetradic
#5252AF #AF5280 #AFAF52 #52AF80
square
#5252AF #AF5280 #AFAF52 #52AF80
split-complementary
#5252AF #AF8052 #80AF52
monochromatic
#2B2B5C #3E3E86 #5252AF #7C7CC2 #A6A6D6

Accessibility & contrast

On white

6.59
#5252AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5252AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5252AF
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5252AF#FFFFFF#000000##FFFFFF
##5252AF1.006.593.186.59
#FFFFFF6.591.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F61B2
Deuteranopia (green-blind)
#1259AD
Tritanopia (blue-blind)
#2A6778
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5252af;
/* rgb */ color: rgb(82, 82, 175);
/* oklch */ color: oklch(48.9% 0.145 279.6);
Tailwind
colors: {
  custom: {
    50: '#8a82c7',
    500: '#5252af',
    950: '#000000',
  },
}
SCSS
$custom: #5252af;
$custom-light: #8a82c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5252af",
  "rgb": {
    "r": 82,
    "g": 82,
    "b": 175
  },
  "hsl": {
    "h": 240,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48854,
    "c": 0.14451,
    "h": 279.6
  },
  "luminance": 0.10924
}

Semantic roles & 50–950 ramp

primary
#5252AF
secondary
#C3C39A
accent
#CD5BCD
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #5252AF

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

Preview Lab → · Contrast checker → · Palette generator →

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