#504DC8#504DC8

#504DC8 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.7% C 0.186 H 278.3°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#504DC8
RGBrgb(80, 77, 200)
HSLhsl(241, 53%, 54%)
HSVhsv(241, 62%, 78%)
CMYKcmyk(60%, 61.5%, 0%, 21.6%)
CIE-LABlab(39.89, 37.38, -63.82)
CIE-LCHlch(39.89, 73.96, 300.36°)
OKLaboklab(49.71% 0.0268 -0.1836)
OKLCHoklch(49.71% 0.186 278.3)
XYZxyz(16.3841, 11.1821, 55.9274)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DC8 #C5C84D
analogous
#4D88C8 #504DC8 #8D4DC8
triadic
#504DC8 #C8504D #4DC850
tetradic
#504DC8 #C84D88 #C5C84D #4DC88D
square
#504DC8 #C84D88 #C5C84D #4DC88D
split-complementary
#504DC8 #C88D4D #88C84D
monochromatic
#262476 #3633A5 #504DC8 #7E7CD6 #ACABE5

Accessibility & contrast

On white

6.49
#504DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#504DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DC8
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DC8#FFFFFF#000000##FFFFFF
##504DC81.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #504dc8;
/* rgb */ color: rgb(80, 77, 200);
/* oklch */ color: oklch(49.7% 0.186 278.3);
Tailwind
colors: {
  custom: {
    50: '#8d7fda',
    500: '#504dc8',
    950: '#000000',
  },
}
SCSS
$custom: #504dc8;
$custom-light: #8d7fda;
$custom-dark: #000000;
JSON
{
  "hex": "#504dc8",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 200
  },
  "hsl": {
    "h": 241.463,
    "s": 52.79,
    "l": 54.314
  },
  "oklch": {
    "l": 0.4971,
    "c": 0.18551,
    "h": 278.3
  },
  "luminance": 0.11183
}

Semantic roles & 50–950 ramp

primary
#504DC8
secondary
#D1D29E
accent
#DC4CD9
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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