#504A8A#504A8A

#504A8A is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.6% C 0.103 H 285.7°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#504A8A
RGBrgb(80, 74, 138)
HSLhsl(246, 30%, 42%)
HSVhsv(246, 46%, 54%)
CMYKcmyk(42%, 46.4%, 0%, 45.9%)
CIE-LABlab(34.88, 19.41, -34.95)
CIE-LCHlch(34.88, 39.98, 299.05°)
OKLaboklab(44.63% 0.0278 -0.0988)
OKLCHoklch(44.63% 0.103 285.7)
XYZxyz(10.3432, 8.4376, 25.1235)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504A8A #848A4A
analogous
#4A648A #504A8A #704A8A
triadic
#504A8A #8A504A #4A8A50
tetradic
#504A8A #8A4A64 #848A4A #4A8A70
square
#504A8A #8A4A64 #848A4A #4A8A70
split-complementary
#504A8A #8A704A #648A4A
monochromatic
#221F3A #393562 #504A8A #6C65AC #928DC2

Accessibility & contrast

On white

7.81
#504A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#504A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504A8A
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504A8A#FFFFFF#000000##FFFFFF
##504A8A1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548C
Deuteranopia (green-blind)
#315089
Tritanopia (blue-blind)
#3F5763
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #504a8a;
/* rgb */ color: rgb(80, 74, 138);
/* oklch */ color: oklch(44.6% 0.103 285.7);
Tailwind
colors: {
  custom: {
    50: '#847cac',
    500: '#504a8a',
    950: '#000000',
  },
}
SCSS
$custom: #504a8a;
$custom-light: #847cac;
$custom-dark: #000000;
JSON
{
  "hex": "#504a8a",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 138
  },
  "hsl": {
    "h": 245.625,
    "s": 30.189,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44627,
    "c": 0.1026,
    "h": 285.7
  },
  "luminance": 0.08438
}

Semantic roles & 50–950 ramp

primary
#504A8A
secondary
#AAAE82
accent
#C661BD
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0910
muted
#7C7B7F

Preview Lab

Preview with #504A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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