#504A87#504A87

#504A87 is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.4% C 0.098 H 286.2°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#504A87
RGBrgb(80, 74, 135)
HSLhsl(246, 29%, 41%)
HSVhsv(246, 45%, 53%)
CMYKcmyk(40.7%, 45.2%, 0%, 47.1%)
CIE-LABlab(34.71, 18.50, -33.38)
CIE-LCHlch(34.71, 38.16, 298.99°)
OKLaboklab(44.44% 0.0273 -0.0942)
OKLCHoklch(44.44% 0.098 286.2)
XYZxyz(10.1290, 8.3520, 23.9954)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504A87 #81874A
analogous
#4A6287 #504A87 #6E4A87
triadic
#504A87 #87504A #4A8750
tetradic
#504A87 #874A62 #81874A #4A876E
square
#504A87 #874A62 #81874A #4A876E
split-complementary
#504A87 #876E4A #62874A
monochromatic
#211F38 #39345F #504A87 #6B64AA #918CC0

Accessibility & contrast

On white

7.86
#504A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#504A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504A87
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504A87#FFFFFF#000000##FFFFFF
##504A871.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345389
Deuteranopia (green-blind)
#335086
Tritanopia (blue-blind)
#415662
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #504a87;
/* rgb */ color: rgb(80, 74, 135);
/* oklch */ color: oklch(44.4% 0.098 286.2);
Tailwind
colors: {
  custom: {
    50: '#847caa',
    500: '#504a87',
    950: '#000000',
  },
}
SCSS
$custom: #504a87;
$custom-light: #847caa;
$custom-dark: #000000;
JSON
{
  "hex": "#504a87",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 135
  },
  "hsl": {
    "h": 245.902,
    "s": 29.187,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4444,
    "c": 0.09806,
    "h": 286.2
  },
  "luminance": 0.08352
}

Semantic roles & 50–950 ramp

primary
#504A87
secondary
#A8AC81
accent
#C562BC
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0910
muted
#7C7B7F

Preview Lab

Preview with #504A87

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

Preview Lab → · Contrast checker → · Palette generator →

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