#5052DF#5052DF

#5052DF is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.5% C 0.209 H 275.8°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5052DF
RGBrgb(80, 82, 223)
HSLhsl(239, 69%, 59%)
HSVhsv(239, 64%, 87%)
CMYKcmyk(64.1%, 63.2%, 0%, 12.5%)
CIE-LABlab(42.86, 41.88, -72.18)
CIE-LCHlch(42.86, 83.45, 300.13°)
OKLaboklab(52.46% 0.0212 -0.2081)
OKLCHoklch(52.46% 0.209 275.8)
XYZxyz(19.6405, 13.0661, 71.2847)
Luminance0.1307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5052DF #DFDD50
analogous
#509ADF #5052DF #9650DF
triadic
#5052DF #DF5052 #52DF50
tetradic
#5052DF #DF509A #DFDD50 #50DF96
square
#5052DF #DF509A #DFDD50 #50DF96
split-complementary
#5052DF #DF9650 #9ADF50
monochromatic
#1C1E99 #2528CC #5052DF #8485E8 #B7B8F2

Accessibility & contrast

On white

5.81
#5052DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5052DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5052DF
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5052DF#FFFFFF#000000##FFFFFF
##5052DF1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5052df;
/* rgb */ color: rgb(80, 82, 223);
/* oklch */ color: oklch(52.5% 0.209 275.8);
Tailwind
colors: {
  custom: {
    50: '#9183ea',
    500: '#5052df',
    950: '#000000',
  },
}
SCSS
$custom: #5052df;
$custom-light: #9183ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5052df",
  "rgb": {
    "r": 80,
    "g": 82,
    "b": 223
  },
  "hsl": {
    "h": 239.161,
    "s": 69.082,
    "l": 59.412
  },
  "oklch": {
    "l": 0.5246,
    "c": 0.20916,
    "h": 275.8
  },
  "luminance": 0.13068
}

Semantic roles & 50–950 ramp

primary
#5052DF
secondary
#E1E0AA
accent
#E93CEC
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5052DF

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

Preview Lab → · Contrast checker → · Palette generator →

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