#504C8A#504C8A

#504C8A is a mid, moderate blue. Relative luminance 0.087; OKLCH L 45.0% C 0.099 H 284.6°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#504C8A
RGBrgb(80, 76, 138)
HSLhsl(244, 29%, 42%)
HSVhsv(244, 45%, 54%)
CMYKcmyk(42%, 44.9%, 0%, 45.9%)
CIE-LABlab(35.42, 18.12, -34.09)
CIE-LCHlch(35.42, 38.61, 298.00°)
OKLaboklab(45.04% 0.0251 -0.0962)
OKLCHoklch(45.04% 0.099 284.6)
XYZxyz(10.4788, 8.7089, 25.1687)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504C8A #868A4C
analogous
#4C678A #504C8A #6F4C8A
triadic
#504C8A #8A504C #4C8A50
tetradic
#504C8A #8A4C67 #868A4C #4C8A6F
square
#504C8A #8A4C67 #868A4C #4C8A6F
split-complementary
#504C8A #8A6F4C #678A4C
monochromatic
#22213B #393663 #504C8A #6C68AC #928FC1

Accessibility & contrast

On white

7.66
#504C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#504C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504C8A
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504C8A#FFFFFF#000000##FFFFFF
##504C8A1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35558C
Deuteranopia (green-blind)
#345189
Tritanopia (blue-blind)
#3F5864
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #504c8a;
/* rgb */ color: rgb(80, 76, 138);
/* oklch */ color: oklch(45.0% 0.099 284.6);
Tailwind
colors: {
  custom: {
    50: '#847eac',
    500: '#504c8a',
    950: '#000000',
  },
}
SCSS
$custom: #504c8a;
$custom-light: #847eac;
$custom-dark: #000000;
JSON
{
  "hex": "#504c8a",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 138
  },
  "hsl": {
    "h": 243.871,
    "s": 28.972,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45036,
    "c": 0.09945,
    "h": 284.6
  },
  "luminance": 0.08709
}

Semantic roles & 50–950 ramp

primary
#504C8A
secondary
#ABAE84
accent
#C563BF
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0910
muted
#7C7B7F

Preview Lab

Preview with #504C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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