#5251AF#5251AF

#5251AF is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.7% C 0.146 H 280.0°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#5251AF
RGBrgb(82, 81, 175)
HSLhsl(241, 37%, 50%)
HSVhsv(241, 54%, 69%)
CMYKcmyk(53.1%, 53.7%, 0%, 31.4%)
CIE-LABlab(39.20, 27.13, -50.29)
CIE-LCHlch(39.20, 57.14, 298.35°)
OKLaboklab(48.66% 0.0253 -0.1437)
OKLCHoklch(48.66% 0.146 280)
XYZxyz(14.1576, 10.7730, 41.8825)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251AF #AEAF51
analogous
#517FAF #5251AF #8151AF
triadic
#5251AF #AF5251 #51AF52
tetradic
#5251AF #AF517F #AEAF51 #51AF81
square
#5251AF #AF517F #AEAF51 #51AF81
split-complementary
#5251AF #AF8151 #7FAF51
monochromatic
#2B2A5C #3E3D85 #5251AF #7C7BC2 #A5A5D6

Accessibility & contrast

On white

6.66
#5251AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5251AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5251AF#FFFFFF#000000##FFFFFF
##5251AF1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C60B2
Deuteranopia (green-blind)
#0D59AD
Tritanopia (blue-blind)
#2A6678
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5251af;
/* rgb */ color: rgb(82, 81, 175);
/* oklch */ color: oklch(48.7% 0.146 280.0);
Tailwind
colors: {
  custom: {
    50: '#8a82c7',
    500: '#5251af',
    950: '#000000',
  },
}
SCSS
$custom: #5251af;
$custom-light: #8a82c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5251af",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 240.638,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48664,
    "c": 0.1459,
    "h": 280
  },
  "luminance": 0.10774
}

Semantic roles & 50–950 ramp

primary
#5251AF
secondary
#C2C399
accent
#CD5BCC
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #5251AF

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

Preview Lab → · Contrast checker → · Palette generator →

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