#504DC9#504DC9

#504DC9 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.8% C 0.187 H 278.2°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#504DC9
RGBrgb(80, 77, 201)
HSLhsl(241, 53%, 55%)
HSVhsv(241, 62%, 79%)
CMYKcmyk(60.2%, 61.7%, 0%, 21.2%)
CIE-LABlab(39.96, 37.71, -64.27)
CIE-LCHlch(39.96, 74.52, 300.40°)
OKLaboklab(49.79% 0.0268 -0.1849)
OKLCHoklch(49.79% 0.187 278.2)
XYZxyz(16.5014, 11.2290, 56.5449)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DC9 #C6C94D
analogous
#4D88C9 #504DC9 #8E4DC9
triadic
#504DC9 #C9504D #4DC950
tetradic
#504DC9 #C94D88 #C6C94D #4DC98E
square
#504DC9 #C94D88 #C6C94D #4DC98E
split-complementary
#504DC9 #C98E4D #88C94D
monochromatic
#262477 #3532A6 #504DC9 #7E7CD7 #ACABE5

Accessibility & contrast

On white

6.47
#504DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#504DC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DC9
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DC9#FFFFFF#000000##FFFFFF
##504DC91.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CD
Deuteranopia (green-blind)
#0059C7
Tritanopia (blue-blind)
#006C84
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #504dc9;
/* rgb */ color: rgb(80, 77, 201);
/* oklch */ color: oklch(49.8% 0.187 278.2);
Tailwind
colors: {
  custom: {
    50: '#8d7fda',
    500: '#504dc9',
    950: '#000000',
  },
}
SCSS
$custom: #504dc9;
$custom-light: #8d7fda;
$custom-dark: #000000;
JSON
{
  "hex": "#504dc9",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 201
  },
  "hsl": {
    "h": 241.452,
    "s": 53.448,
    "l": 54.51
  },
  "oklch": {
    "l": 0.49792,
    "c": 0.18682,
    "h": 278.2
  },
  "luminance": 0.1123
}

Semantic roles & 50–950 ramp

primary
#504DC9
secondary
#D2D39F
accent
#DD4BD9
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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