#5251CE#5251CE

#5251CE is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.0% C 0.188 H 277.8°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#5251CE
RGBrgb(82, 81, 206)
HSLhsl(240, 56%, 56%)
HSVhsv(240, 61%, 81%)
CMYKcmyk(60.2%, 60.7%, 0%, 19.2%)
CIE-LABlab(41.43, 37.23, -64.77)
CIE-LCHlch(41.43, 74.71, 299.89°)
OKLaboklab(51.03% 0.0254 -0.1863)
OKLCHoklch(51.03% 0.188 277.8)
XYZxyz(17.5591, 12.1336, 59.7973)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251CE #CDCE51
analogous
#518FCE #5251CE #9151CE
triadic
#5251CE #CE5251 #51CE52
tetradic
#5251CE #CE518F #CDCE51 #51CE91
square
#5251CE #CE518F #CDCE51 #51CE91
split-complementary
#5251CE #CE9151 #8FCE51
monochromatic
#252480 #3332B0 #5251CE #8181DB #B1B1E9

Accessibility & contrast

On white

6.13
#5251CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5251CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251CE
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251CE#FFFFFF#000000##FFFFFF
##5251CE1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D2
Deuteranopia (green-blind)
#005CCC
Tritanopia (blue-blind)
#007088
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5251ce;
/* rgb */ color: rgb(82, 81, 206);
/* oklch */ color: oklch(51.0% 0.188 277.8);
Tailwind
colors: {
  custom: {
    50: '#8f82de',
    500: '#5251ce',
    950: '#000000',
  },
}
SCSS
$custom: #5251ce;
$custom-light: #8f82de;
$custom-dark: #000000;
JSON
{
  "hex": "#5251ce",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 240.48,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51025,
    "c": 0.18801,
    "h": 277.8
  },
  "luminance": 0.12135
}

Semantic roles & 50–950 ramp

primary
#5251CE
secondary
#D7D7A4
accent
#DF48DE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5251CE

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

Preview Lab → · Contrast checker → · Palette generator →

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