#504C8B#504C8B

#504C8B is a mid, moderate blue. Relative luminance 0.087; OKLCH L 45.1% C 0.101 H 284.5°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#504C8B
RGBrgb(80, 76, 139)
HSLhsl(244, 29%, 42%)
HSVhsv(244, 45%, 55%)
CMYKcmyk(42.4%, 45.3%, 0%, 45.5%)
CIE-LABlab(35.47, 18.43, -34.61)
CIE-LCHlch(35.47, 39.21, 298.03°)
OKLaboklab(45.1% 0.0252 -0.0978)
OKLCHoklch(45.1% 0.101 284.5)
XYZxyz(10.5516, 8.7380, 25.5517)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504C8B #878B4C
analogous
#4C678B #504C8B #704C8B
triadic
#504C8B #8B504C #4C8B50
tetradic
#504C8B #8B4C67 #878B4C #4C8B70
square
#504C8B #8B4C67 #878B4C #4C8B70
split-complementary
#504C8B #8B704C #678B4C
monochromatic
#22213C #393663 #504C8B #6C68AC #938FC2

Accessibility & contrast

On white

7.64
#504C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#504C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504C8B
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504C8B#FFFFFF#000000##FFFFFF
##504C8B1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35558D
Deuteranopia (green-blind)
#33518A
Tritanopia (blue-blind)
#3F5965
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #504c8b;
/* rgb */ color: rgb(80, 76, 139);
/* oklch */ color: oklch(45.1% 0.101 284.5);
Tailwind
colors: {
  custom: {
    50: '#847ead',
    500: '#504c8b',
    950: '#000000',
  },
}
SCSS
$custom: #504c8b;
$custom-light: #847ead;
$custom-dark: #000000;
JSON
{
  "hex": "#504c8b",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 139
  },
  "hsl": {
    "h": 243.81,
    "s": 29.302,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45098,
    "c": 0.10097,
    "h": 284.5
  },
  "luminance": 0.08738
}

Semantic roles & 50–950 ramp

primary
#504C8B
secondary
#ACAE85
accent
#C662BF
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0910
muted
#7C7B7F

Preview Lab

Preview with #504C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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