#5251E9#5251E9

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

Color values

HEX#5251E9
RGBrgb(82, 81, 233)
HSLhsl(240, 78%, 62%)
HSVhsv(240, 65%, 91%)
CMYKcmyk(64.8%, 65.2%, 0%, 8.6%)
CIE-LABlab(43.60, 45.99, -76.65)
CIE-LCHlch(43.60, 89.39, 300.97°)
OKLaboklab(53.28% 0.0234 -0.2211)
OKLCHoklch(53.28% 0.222 276)
XYZxyz(21.1253, 13.5601, 78.5791)
Luminance0.1356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251E9 #E8E951
analogous
#519CE9 #5251E9 #9E51E9
triadic
#5251E9 #E95251 #51E952
tetradic
#5251E9 #E9519C #E8E951 #51E99E
square
#5251E9 #E9519C #E8E951 #51E99E
split-complementary
#5251E9 #E99E51 #9CE951
monochromatic
#1616AA #1E1CE0 #5251E9 #8887F0 #BEBEF7

Accessibility & contrast

On white

5.66
#5251E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#5251E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5251E9#FFFFFF#000000##FFFFFF
##5251E91.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEE
Deuteranopia (green-blind)
#0060E6
Tritanopia (blue-blind)
#007996
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5251e9;
/* rgb */ color: rgb(82, 81, 233);
/* oklch */ color: oklch(53.3% 0.222 276.0);
Tailwind
colors: {
  custom: {
    50: '#9482f1',
    500: '#5251e9',
    950: '#000000',
  },
}
SCSS
$custom: #5251e9;
$custom-light: #9482f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5251e9",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 233
  },
  "hsl": {
    "h": 240.395,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.53282,
    "c": 0.22238,
    "h": 276
  },
  "luminance": 0.13562
}

Semantic roles & 50–950 ramp

primary
#5251E9
secondary
#E7E7AF
accent
#DA0CD8
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #5251E9

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

Preview Lab → · Contrast checker → · Palette generator →

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