#5251E1#5251E1

#5251E1 is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.6% C 0.212 H 276.5°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#5251E1
RGBrgb(82, 81, 225)
HSLhsl(240, 71%, 60%)
HSVhsv(240, 64%, 88%)
CMYKcmyk(63.6%, 64%, 0%, 11.8%)
CIE-LABlab(42.93, 43.41, -73.19)
CIE-LCHlch(42.93, 85.10, 300.67°)
OKLaboklab(52.6% 0.0242 -0.211)
OKLCHoklch(52.6% 0.212 276.5)
XYZxyz(20.0083, 13.1133, 72.6963)
Luminance0.1311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251E1 #E0E151
analogous
#5198E1 #5251E1 #9A51E1
triadic
#5251E1 #E15251 #51E152
tetradic
#5251E1 #E15198 #E0E151 #51E19A
square
#5251E1 #E15198 #E0E151 #51E19A
split-complementary
#5251E1 #E19A51 #98E151
monochromatic
#1C1B9D #2524D1 #5251E1 #8685EA #BAB9F3

Accessibility & contrast

On white

5.80
#5251E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#5251E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5251E1#FFFFFF#000000##FFFFFF
##5251E11.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE6
Deuteranopia (green-blind)
#005FDE
Tritanopia (blue-blind)
#007692
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5251e1;
/* rgb */ color: rgb(82, 81, 225);
/* oklch */ color: oklch(52.6% 0.212 276.5);
Tailwind
colors: {
  custom: {
    50: '#9282eb',
    500: '#5251e1',
    950: '#000000',
  },
}
SCSS
$custom: #5251e1;
$custom-light: #9282eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5251e1",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 225
  },
  "hsl": {
    "h": 240.417,
    "s": 70.588,
    "l": 60
  },
  "oklch": {
    "l": 0.52596,
    "c": 0.2124,
    "h": 276.5
  },
  "luminance": 0.13115
}

Semantic roles & 50–950 ramp

primary
#5251E1
secondary
#E2E3AB
accent
#ED3AEC
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5251E1

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

Preview Lab → · Contrast checker → · Palette generator →

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