#5251AA#5251AA

#5251AA is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.3% C 0.139 H 280.4°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5251AA
RGBrgb(82, 81, 170)
HSLhsl(241, 35%, 49%)
HSVhsv(241, 52%, 67%)
CMYKcmyk(51.8%, 52.4%, 0%, 33.3%)
CIE-LABlab(38.86, 25.52, -47.86)
CIE-LCHlch(38.86, 54.24, 298.07°)
OKLaboklab(48.31% 0.025 -0.1365)
OKLCHoklch(48.31% 0.139 280.4)
XYZxyz(13.6756, 10.5802, 39.3440)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251AA #A9AA51
analogous
#517DAA #5251AA #7F51AA
triadic
#5251AA #AA5251 #51AA52
tetradic
#5251AA #AA517D #A9AA51 #51AA7F
square
#5251AA #AA517D #A9AA51 #51AA7F
split-complementary
#5251AA #AA7F51 #7DAA51
monochromatic
#2A2A57 #3E3D81 #5251AA #7A79BF #A3A2D3

Accessibility & contrast

On white

6.74
#5251AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5251AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251AA
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251AA#FFFFFF#000000##FFFFFF
##5251AA1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235FAD
Deuteranopia (green-blind)
#1A58A8
Tritanopia (blue-blind)
#2E6575
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5251aa;
/* rgb */ color: rgb(82, 81, 170);
/* oklch */ color: oklch(48.3% 0.139 280.4);
Tailwind
colors: {
  custom: {
    50: '#8982c4',
    500: '#5251aa',
    950: '#000000',
  },
}
SCSS
$custom: #5251aa;
$custom-light: #8982c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5251aa",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 170
  },
  "hsl": {
    "h": 240.674,
    "s": 35.458,
    "l": 49.216
  },
  "oklch": {
    "l": 0.4831,
    "c": 0.13881,
    "h": 280.4
  },
  "luminance": 0.10581
}

Semantic roles & 50–950 ramp

primary
#5251AA
secondary
#C0C097
accent
#CB5CCA
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #5251AA

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

Preview Lab → · Contrast checker → · Palette generator →

#5251AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva