#504C8D#504C8D

#504C8D is a mid, moderate blue. Relative luminance 0.088; OKLCH L 45.2% C 0.104 H 284.2°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#504C8D
RGBrgb(80, 76, 141)
HSLhsl(244, 30%, 43%)
HSVhsv(244, 46%, 55%)
CMYKcmyk(43.3%, 46.1%, 0%, 44.7%)
CIE-LABlab(35.59, 19.05, -35.65)
CIE-LCHlch(35.59, 40.42, 298.11°)
OKLaboklab(45.22% 0.0255 -0.1008)
OKLCHoklch(45.22% 0.104 284.2)
XYZxyz(10.6990, 8.7970, 26.3284)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504C8D #898D4C
analogous
#4C698D #504C8D #704C8D
triadic
#504C8D #8D504C #4C8D50
tetradic
#504C8D #8D4C69 #898D4C #4C8D70
square
#504C8D #8D4C69 #898D4C #4C8D70
split-complementary
#504C8D #8D704C #698D4C
monochromatic
#23213D #393765 #504C8D #6D68AE #9390C3

Accessibility & contrast

On white

7.61
#504C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#504C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504C8D
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504C8D#FFFFFF#000000##FFFFFF
##504C8D1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34568F
Deuteranopia (green-blind)
#31528C
Tritanopia (blue-blind)
#3E5965
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #504c8d;
/* rgb */ color: rgb(80, 76, 141);
/* oklch */ color: oklch(45.2% 0.104 284.2);
Tailwind
colors: {
  custom: {
    50: '#847eaf',
    500: '#504c8d',
    950: '#000000',
  },
}
SCSS
$custom: #504c8d;
$custom-light: #847eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#504c8d",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 141
  },
  "hsl": {
    "h": 243.692,
    "s": 29.954,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45223,
    "c": 0.10399,
    "h": 284.2
  },
  "luminance": 0.08797
}

Semantic roles & 50–950 ramp

primary
#504C8D
secondary
#ADAF85
accent
#C662C0
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0910
muted
#7C7B7F

Preview Lab

Preview with #504C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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