#5251DE#5251DE

#5251DE is a mid, highly saturated blue. Relative luminance 0.130; OKLCH L 52.3% C 0.209 H 276.7°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#5251DE
RGBrgb(82, 81, 222)
HSLhsl(240, 68%, 59%)
HSVhsv(240, 64%, 87%)
CMYKcmyk(63.1%, 63.5%, 0%, 12.9%)
CIE-LABlab(42.69, 42.44, -71.88)
CIE-LCHlch(42.69, 83.48, 300.56°)
OKLaboklab(52.34% 0.0244 -0.2072)
OKLCHoklch(52.34% 0.209 276.7)
XYZxyz(19.6026, 12.9510, 70.5599)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251DE #DDDE51
analogous
#5196DE #5251DE #9951DE
triadic
#5251DE #DE5251 #51DE52
tetradic
#5251DE #DE5196 #DDDE51 #51DE99
square
#5251DE #DE5196 #DDDE51 #51DE99
split-complementary
#5251DE #DE9951 #96DE51
monochromatic
#1E1D98 #2827CB #5251DE #8584E8 #B8B8F2

Accessibility & contrast

On white

5.85
#5251DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#5251DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251DE
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251DE#FFFFFF#000000##FFFFFF
##5251DE1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE2
Deuteranopia (green-blind)
#005FDB
Tritanopia (blue-blind)
#007590
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5251de;
/* rgb */ color: rgb(82, 81, 222);
/* oklch */ color: oklch(52.3% 0.209 276.7);
Tailwind
colors: {
  custom: {
    50: '#9282e9',
    500: '#5251de',
    950: '#000000',
  },
}
SCSS
$custom: #5251de;
$custom-light: #9282e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5251de",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 222
  },
  "hsl": {
    "h": 240.426,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.52342,
    "c": 0.20861,
    "h": 276.7
  },
  "luminance": 0.12953
}

Semantic roles & 50–950 ramp

primary
#5251DE
secondary
#E0E1AA
accent
#EB3DEA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5251DE

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

Preview Lab → · Contrast checker → · Palette generator →

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