#5251DF#5251DF

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

Color values

HEX#5251DF
RGBrgb(82, 81, 223)
HSLhsl(240, 69%, 60%)
HSVhsv(240, 64%, 87%)
CMYKcmyk(63.2%, 63.7%, 0%, 12.5%)
CIE-LABlab(42.77, 42.77, -72.32)
CIE-LCHlch(42.77, 84.02, 300.60°)
OKLaboklab(52.43% 0.0243 -0.2085)
OKLCHoklch(52.43% 0.21 276.7)
XYZxyz(19.7371, 13.0048, 71.2678)
Luminance0.1301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251DF #DEDF51
analogous
#5197DF #5251DF #9951DF
triadic
#5251DF #DF5251 #51DF52
tetradic
#5251DF #DF5197 #DEDF51 #51DF99
square
#5251DF #DF5197 #DEDF51 #51DF99
split-complementary
#5251DF #DF9951 #97DF51
monochromatic
#1D1C99 #2726CD #5251DF #8585E9 #B9B8F2

Accessibility & contrast

On white

5.83
#5251DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#5251DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251DF
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251DF#FFFFFF#000000##FFFFFF
##5251DF1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE4
Deuteranopia (green-blind)
#005FDC
Tritanopia (blue-blind)
#007591
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5251df;
/* rgb */ color: rgb(82, 81, 223);
/* oklch */ color: oklch(52.4% 0.210 276.7);
Tailwind
colors: {
  custom: {
    50: '#9282ea',
    500: '#5251df',
    950: '#000000',
  },
}
SCSS
$custom: #5251df;
$custom-light: #9282ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5251df",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 240.423,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.52427,
    "c": 0.20988,
    "h": 276.7
  },
  "luminance": 0.13006
}

Semantic roles & 50–950 ramp

primary
#5251DF
secondary
#E1E1AA
accent
#EC3CEB
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5251DF

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

Preview Lab → · Contrast checker → · Palette generator →

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