#504DCD#504DCD

#504DCD is a mid, vivid blue. Relative luminance 0.114; OKLCH L 50.1% C 0.192 H 277.9°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#504DCD
RGBrgb(80, 77, 205)
HSLhsl(241, 56%, 55%)
HSVhsv(241, 62%, 80%)
CMYKcmyk(61%, 62.4%, 0%, 19.6%)
CIE-LABlab(40.28, 39.01, -66.07)
CIE-LCHlch(40.28, 76.73, 300.56°)
OKLaboklab(50.12% 0.0266 -0.1902)
OKLCHoklch(50.12% 0.192 277.9)
XYZxyz(16.9780, 11.4197, 59.0553)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DCD #CACD4D
analogous
#4D8ACD #504DCD #904DCD
triadic
#504DCD #CD504D #4DCD50
tetradic
#504DCD #CD4D8A #CACD4D #4DCD90
square
#504DCD #CD4D8A #CACD4D #4DCD90
split-complementary
#504DCD #CD904D #8ACD4D
monochromatic
#25237D #3330AC #504DCD #7F7DDA #AEADE8

Accessibility & contrast

On white

6.39
#504DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#504DCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DCD
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DCD#FFFFFF#000000##FFFFFF
##504DCD1.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D1
Deuteranopia (green-blind)
#005ACA
Tritanopia (blue-blind)
#006D86
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #504dcd;
/* rgb */ color: rgb(80, 77, 205);
/* oklch */ color: oklch(50.1% 0.192 277.9);
Tailwind
colors: {
  custom: {
    50: '#8e7fdd',
    500: '#504dcd',
    950: '#000000',
  },
}
SCSS
$custom: #504dcd;
$custom-light: #8e7fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#504dcd",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 205
  },
  "hsl": {
    "h": 241.406,
    "s": 56.14,
    "l": 55.294
  },
  "oklch": {
    "l": 0.50121,
    "c": 0.19203,
    "h": 277.9
  },
  "luminance": 0.11421
}

Semantic roles & 50–950 ramp

primary
#504DCD
secondary
#D4D6A0
accent
#DF48DC
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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