#5251E4#5251E4

#5251E4 is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 52.9% C 0.216 H 276.3°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#5251E4
RGBrgb(82, 81, 228)
HSLhsl(240, 73%, 61%)
HSVhsv(240, 64%, 89%)
CMYKcmyk(64%, 64.5%, 0%, 10.6%)
CIE-LABlab(43.18, 44.38, -74.49)
CIE-LCHlch(43.18, 86.71, 300.79°)
OKLaboklab(52.85% 0.0239 -0.2148)
OKLCHoklch(52.85% 0.216 276.3)
XYZxyz(20.4211, 13.2784, 74.8706)
Luminance0.1328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251E4 #E3E451
analogous
#5199E4 #5251E4 #9B51E4
triadic
#5251E4 #E45251 #51E452
tetradic
#5251E4 #E45199 #E3E451 #51E49B
square
#5251E4 #E45199 #E3E451 #51E49B
split-complementary
#5251E4 #E49B51 #99E451
monochromatic
#1A19A2 #2321D7 #5251E4 #8786EC #BBBBF4

Accessibility & contrast

On white

5.74
#5251E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5251E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251E4
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251E4#FFFFFF#000000##FFFFFF
##5251E41.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE9
Deuteranopia (green-blind)
#0060E1
Tritanopia (blue-blind)
#007793
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5251e4;
/* rgb */ color: rgb(82, 81, 228);
/* oklch */ color: oklch(52.9% 0.216 276.3);
Tailwind
colors: {
  custom: {
    50: '#9382ee',
    500: '#5251e4',
    950: '#000000',
  },
}
SCSS
$custom: #5251e4;
$custom-light: #9382ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5251e4",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 240.408,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.52852,
    "c": 0.21616,
    "h": 276.3
  },
  "luminance": 0.1328
}

Semantic roles & 50–950 ramp

primary
#5251E4
secondary
#E4E4AC
accent
#D510D4
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5251E4

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

Preview Lab → · Contrast checker → · Palette generator →

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