#504DC7#504DC7

#504DC7 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.6% C 0.184 H 278.4°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#504DC7
RGBrgb(80, 77, 199)
HSLhsl(241, 52%, 54%)
HSVhsv(241, 61%, 78%)
CMYKcmyk(59.8%, 61.3%, 0%, 22%)
CIE-LABlab(39.81, 37.06, -63.36)
CIE-LCHlch(39.81, 73.40, 300.32°)
OKLaboklab(49.63% 0.0269 -0.1822)
OKLCHoklch(49.63% 0.184 278.4)
XYZxyz(16.2677, 11.1356, 55.3139)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DC7 #C4C74D
analogous
#4D87C7 #504DC7 #8D4DC7
triadic
#504DC7 #C7504D #4DC750
tetradic
#504DC7 #C74D87 #C4C74D #4DC78D
square
#504DC7 #C74D87 #C4C74D #4DC78D
split-complementary
#504DC7 #C78D4D #87C74D
monochromatic
#272575 #3633A3 #504DC7 #7E7CD6 #ACAAE4

Accessibility & contrast

On white

6.51
#504DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#504DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DC7
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DC7#FFFFFF#000000##FFFFFF
##504DC71.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CB
Deuteranopia (green-blind)
#0059C5
Tritanopia (blue-blind)
#006B83
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #504dc7;
/* rgb */ color: rgb(80, 77, 199);
/* oklch */ color: oklch(49.6% 0.184 278.4);
Tailwind
colors: {
  custom: {
    50: '#8d7fd9',
    500: '#504dc7',
    950: '#000000',
  },
}
SCSS
$custom: #504dc7;
$custom-light: #8d7fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#504dc7",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 241.475,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49629,
    "c": 0.1842,
    "h": 278.4
  },
  "luminance": 0.11137
}

Semantic roles & 50–950 ramp

primary
#504DC7
secondary
#D1D29E
accent
#DC4CD8
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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