#5251E8#5251E8

#5251E8 is a mid, highly saturated blue. Relative luminance 0.135; OKLCH L 53.2% C 0.221 H 276.1°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#5251E8
RGBrgb(82, 81, 232)
HSLhsl(240, 77%, 61%)
HSVhsv(240, 65%, 91%)
CMYKcmyk(64.7%, 65.1%, 0%, 9%)
CIE-LABlab(43.51, 45.67, -76.22)
CIE-LCHlch(43.51, 88.85, 300.93°)
OKLaboklab(53.2% 0.0235 -0.2199)
OKLCHoklch(53.2% 0.221 276.1)
XYZxyz(20.9828, 13.5031, 77.8289)
Luminance0.1351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251E8 #E7E851
analogous
#519CE8 #5251E8 #9E51E8
triadic
#5251E8 #E85251 #51E852
tetradic
#5251E8 #E8519C #E7E851 #51E89E
square
#5251E8 #E8519C #E7E851 #51E89E
split-complementary
#5251E8 #E89E51 #9CE851
monochromatic
#1716A8 #1F1DDE #5251E8 #8887EF #BDBDF6

Accessibility & contrast

On white

5.67
#5251E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#5251E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251E8
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251E8#FFFFFF#000000##FFFFFF
##5251E81.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DED
Deuteranopia (green-blind)
#0060E5
Tritanopia (blue-blind)
#007895
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5251e8;
/* rgb */ color: rgb(82, 81, 232);
/* oklch */ color: oklch(53.2% 0.221 276.1);
Tailwind
colors: {
  custom: {
    50: '#9382f0',
    500: '#5251e8',
    950: '#000000',
  },
}
SCSS
$custom: #5251e8;
$custom-light: #9382f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5251e8",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 240.397,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.53195,
    "c": 0.22114,
    "h": 276.1
  },
  "luminance": 0.13505
}

Semantic roles & 50–950 ramp

primary
#5251E8
secondary
#E6E7AE
accent
#D90DD8
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #5251E8

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

Preview Lab → · Contrast checker → · Palette generator →

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