#5251EA#5251EA

#5251EA is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 53.4% C 0.224 H 276.0°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#5251EA
RGBrgb(82, 81, 234)
HSLhsl(240, 78%, 62%)
HSVhsv(240, 65%, 92%)
CMYKcmyk(65%, 65.4%, 0%, 8.2%)
CIE-LABlab(43.68, 46.32, -77.07)
CIE-LCHlch(43.68, 89.92, 301.00°)
OKLaboklab(53.37% 0.0233 -0.2224)
OKLCHoklch(53.37% 0.224 276)
XYZxyz(21.2685, 13.6174, 79.3335)
Luminance0.1362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251EA #E9EA51
analogous
#519DEA #5251EA #9F51EA
triadic
#5251EA #EA5251 #51EA52
tetradic
#5251EA #EA519D #E9EA51 #51EA9F
square
#5251EA #EA519D #E9EA51 #51EA9F
split-complementary
#5251EA #EA9F51 #9DEA51
monochromatic
#1615AC #1D1BE2 #5251EA #8888F1 #BFBEF7

Accessibility & contrast

On white

5.64
#5251EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#5251EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5251EA#FFFFFF#000000##FFFFFF
##5251EA1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEF
Deuteranopia (green-blind)
#0060E7
Tritanopia (blue-blind)
#007997
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5251ea;
/* rgb */ color: rgb(82, 81, 234);
/* oklch */ color: oklch(53.4% 0.224 276.0);
Tailwind
colors: {
  custom: {
    50: '#9482f2',
    500: '#5251ea',
    950: '#000000',
  },
}
SCSS
$custom: #5251ea;
$custom-light: #9482f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5251ea",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 240.392,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.53368,
    "c": 0.22361,
    "h": 276
  },
  "luminance": 0.13619
}

Semantic roles & 50–950 ramp

primary
#5251EA
secondary
#E7E8AF
accent
#DB0BD9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #5251EA

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

Preview Lab → · Contrast checker → · Palette generator →

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