#5251D8#5251D8

#5251D8 is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 51.8% C 0.201 H 277.1°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#5251D8
RGBrgb(82, 81, 216)
HSLhsl(240, 63%, 58%)
HSVhsv(240, 63%, 85%)
CMYKcmyk(62%, 62.5%, 0%, 15.3%)
CIE-LABlab(42.21, 40.49, -69.24)
CIE-LCHlch(42.21, 80.21, 300.32°)
OKLaboklab(51.84% 0.0248 -0.1994)
OKLCHoklch(51.84% 0.201 277.1)
XYZxyz(18.8128, 12.6351, 66.3999)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251D8 #D7D851
analogous
#5194D8 #5251D8 #9551D8
triadic
#5251D8 #D85251 #51D852
tetradic
#5251D8 #D85194 #D7D851 #51D895
square
#5251D8 #D85194 #D7D851 #51D895
split-complementary
#5251D8 #D89551 #94D851
monochromatic
#21208F #2C2BC1 #5251D8 #8483E3 #B5B5EE

Accessibility & contrast

On white

5.95
#5251D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5251D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251D8
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251D8#FFFFFF#000000##FFFFFF
##5251D81.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DC
Deuteranopia (green-blind)
#005ED5
Tritanopia (blue-blind)
#00738D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5251d8;
/* rgb */ color: rgb(82, 81, 216);
/* oklch */ color: oklch(51.8% 0.201 277.1);
Tailwind
colors: {
  custom: {
    50: '#9082e5',
    500: '#5251d8',
    950: '#000000',
  },
}
SCSS
$custom: #5251d8;
$custom-light: #9082e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5251d8",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 240.444,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.51841,
    "c": 0.20097,
    "h": 277.1
  },
  "luminance": 0.12637
}

Semantic roles & 50–950 ramp

primary
#5251D8
secondary
#DDDDA8
accent
#E641E5
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5251D8

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

Preview Lab → · Contrast checker → · Palette generator →

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