#5251DA#5251DA

#5251DA is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 52.0% C 0.204 H 277.0°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#5251DA
RGBrgb(82, 81, 218)
HSLhsl(240, 65%, 59%)
HSVhsv(240, 63%, 85%)
CMYKcmyk(62.4%, 62.8%, 0%, 14.5%)
CIE-LABlab(42.37, 41.14, -70.13)
CIE-LCHlch(42.37, 81.31, 300.40°)
OKLaboklab(52.01% 0.0247 -0.202)
OKLCHoklch(52.01% 0.204 277)
XYZxyz(19.0729, 12.7391, 67.7699)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251DA #D9DA51
analogous
#5194DA #5251DA #9651DA
triadic
#5251DA #DA5251 #51DA52
tetradic
#5251DA #DA5194 #D9DA51 #51DA96
square
#5251DA #DA5194 #D9DA51 #51DA96
split-complementary
#5251DA #DA9651 #94DA51
monochromatic
#201F92 #2B2AC4 #5251DA #8483E5 #B6B6EF

Accessibility & contrast

On white

5.92
#5251DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5251DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5251DA#FFFFFF#000000##FFFFFF
##5251DA1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADE
Deuteranopia (green-blind)
#005ED7
Tritanopia (blue-blind)
#00748E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5251da;
/* rgb */ color: rgb(82, 81, 218);
/* oklch */ color: oklch(52.0% 0.204 277.0);
Tailwind
colors: {
  custom: {
    50: '#9182e6',
    500: '#5251da',
    950: '#000000',
  },
}
SCSS
$custom: #5251da;
$custom-light: #9182e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5251da",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 218
  },
  "hsl": {
    "h": 240.438,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.52007,
    "c": 0.20352,
    "h": 277
  },
  "luminance": 0.12741
}

Semantic roles & 50–950 ramp

primary
#5251DA
secondary
#DEDEA8
accent
#E840E7
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5251DA

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

Preview Lab → · Contrast checker → · Palette generator →

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