#504DD2#504DD2

#504DD2 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.5% C 0.198 H 277.6°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#504DD2
RGBrgb(80, 77, 210)
HSLhsl(241, 60%, 56%)
HSVhsv(241, 63%, 82%)
CMYKcmyk(61.9%, 63.3%, 0%, 17.6%)
CIE-LABlab(40.68, 40.64, -68.30)
CIE-LCHlch(40.68, 79.48, 300.75°)
OKLaboklab(50.54% 0.0262 -0.1967)
OKLCHoklch(50.54% 0.198 277.6)
XYZxyz(17.5912, 11.6650, 62.2848)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DD2 #CFD24D
analogous
#4D8DD2 #504DD2 #934DD2
triadic
#504DD2 #D2504D #4DD250
tetradic
#504DD2 #D24D8D #CFD24D #4DD293
square
#504DD2 #D24D8D #CFD24D #4DD293
split-complementary
#504DD2 #D2934D #8DD24D
monochromatic
#232183 #312EB4 #504DD2 #807EDE #B0AFEB

Accessibility & contrast

On white

6.30
#504DD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#504DD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DD2
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DD2#FFFFFF#000000##FFFFFF
##504DD21.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D6
Deuteranopia (green-blind)
#005ACF
Tritanopia (blue-blind)
#006F88
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #504dd2;
/* rgb */ color: rgb(80, 77, 210);
/* oklch */ color: oklch(50.5% 0.198 277.6);
Tailwind
colors: {
  custom: {
    50: '#8f7fe1',
    500: '#504dd2',
    950: '#000000',
  },
}
SCSS
$custom: #504dd2;
$custom-light: #8f7fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#504dd2",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 210
  },
  "hsl": {
    "h": 241.353,
    "s": 59.641,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50538,
    "c": 0.19848,
    "h": 277.6
  },
  "luminance": 0.11666
}

Semantic roles & 50–950 ramp

primary
#504DD2
secondary
#D8D9A2
accent
#E345DF
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #504DD2

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

Preview Lab → · Contrast checker → · Palette generator →

#504DD2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva