#504D8A#504D8A

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

Color values

HEX#504D8A
RGBrgb(80, 77, 138)
HSLhsl(243, 28%, 42%)
HSVhsv(243, 44%, 54%)
CMYKcmyk(42%, 44.2%, 0%, 45.9%)
CIE-LABlab(35.69, 17.48, -33.66)
CIE-LCHlch(35.69, 37.93, 297.44°)
OKLaboklab(45.24% 0.0237 -0.095)
OKLCHoklch(45.24% 0.098 284)
XYZxyz(10.5483, 8.8478, 25.1918)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504D8A #878A4D
analogous
#4D698A #504D8A #6F4D8A
triadic
#504D8A #8A504D #4D8A50
tetradic
#504D8A #8A4D69 #878A4D #4D8A6F
square
#504D8A #8A4D69 #878A4D #4D8A6F
split-complementary
#504D8A #8A6F4D #698A4D
monochromatic
#22213B #393763 #504D8A #6C69AB #9390C1

Accessibility & contrast

On white

7.58
#504D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#504D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504D8A
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504D8A#FFFFFF#000000##FFFFFF
##504D8A1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37568C
Deuteranopia (green-blind)
#355289
Tritanopia (blue-blind)
#3F5965
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #504d8a;
/* rgb */ color: rgb(80, 77, 138);
/* oklch */ color: oklch(45.2% 0.098 284.0);
Tailwind
colors: {
  custom: {
    50: '#847eac',
    500: '#504d8a',
    950: '#000000',
  },
}
SCSS
$custom: #504d8a;
$custom-light: #847eac;
$custom-dark: #000000;
JSON
{
  "hex": "#504d8a",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 138
  },
  "hsl": {
    "h": 242.951,
    "s": 28.372,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45242,
    "c": 0.09789,
    "h": 284
  },
  "luminance": 0.08848
}

Semantic roles & 50–950 ramp

primary
#504D8A
secondary
#ACAE85
accent
#C563C0
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0A10
muted
#7C7C7F

Preview Lab

Preview with #504D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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