#504A71#504A71

#504A71 is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.2% C 0.064 H 290.5°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#504A71
RGBrgb(80, 74, 113)
HSLhsl(249, 21%, 37%)
HSVhsv(249, 35%, 44%)
CMYKcmyk(29.2%, 34.5%, 0%, 55.7%)
CIE-LABlab(33.55, 12.07, -21.54)
CIE-LCHlch(33.55, 24.69, 299.25°)
OKLaboklab(43.18% 0.0224 -0.0598)
OKLCHoklch(43.18% 0.064 290.5)
XYZxyz(8.7369, 7.7951, 16.6639)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504A71 #6B714A
analogous
#4A5871 #504A71 #644A71
triadic
#504A71 #71504A #4A7150
tetradic
#504A71 #714A58 #6B714A #4A7164
square
#504A71 #714A58 #6B714A #4A7164
split-complementary
#504A71 #71644A #58714A
monochromatic
#1C1A27 #36324C #504A71 #6A6296 #8C86B0

Accessibility & contrast

On white

8.21
#504A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#504A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504A71
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504A71#FFFFFF#000000##FFFFFF
##504A711.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5073
Deuteranopia (green-blind)
#404E70
Tritanopia (blue-blind)
#495158
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #504a71;
/* rgb */ color: rgb(80, 74, 113);
/* oklch */ color: oklch(43.2% 0.064 290.5);
Tailwind
colors: {
  custom: {
    50: '#827c9a',
    500: '#504a71',
    950: '#000000',
  },
}
SCSS
$custom: #504a71;
$custom-light: #827c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#504a71",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 113
  },
  "hsl": {
    "h": 249.231,
    "s": 20.856,
    "l": 36.667
  },
  "oklch": {
    "l": 0.43183,
    "c": 0.06388,
    "h": 290.5
  },
  "luminance": 0.07795
}

Semantic roles & 50–950 ramp

primary
#504A71
secondary
#979C7B
accent
#BD6AB1
background
#F8F7F9
surface
#EFEEF2
border
#CAC9CC
text
#0A090E
muted
#7C7B7E

Preview Lab

Preview with #504A71

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

Preview Lab → · Contrast checker → · Palette generator →

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