#504B8A#504B8A

#504B8A is a dark, moderate blue. Relative luminance 0.086; OKLCH L 44.8% C 0.101 H 285.2°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#504B8A
RGBrgb(80, 75, 138)
HSLhsl(245, 30%, 42%)
HSVhsv(245, 46%, 54%)
CMYKcmyk(42%, 45.7%, 0%, 45.9%)
CIE-LABlab(35.15, 18.77, -34.52)
CIE-LCHlch(35.15, 39.29, 298.53°)
OKLaboklab(44.83% 0.0264 -0.0975)
OKLCHoklch(44.83% 0.101 285.2)
XYZxyz(10.4105, 8.5722, 25.1459)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504B8A #858A4B
analogous
#4B668A #504B8A #704B8A
triadic
#504B8A #8A504B #4B8A50
tetradic
#504B8A #8A4B66 #858A4B #4B8A70
square
#504B8A #8A4B66 #858A4B #4B8A70
split-complementary
#504B8A #8A704B #668A4B
monochromatic
#22203B #393562 #504B8A #6C66AC #928EC2

Accessibility & contrast

On white

7.74
#504B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#504B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504B8A
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504B8A#FFFFFF#000000##FFFFFF
##504B8A1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #504b8a;
/* rgb */ color: rgb(80, 75, 138);
/* oklch */ color: oklch(44.8% 0.101 285.2);
Tailwind
colors: {
  custom: {
    50: '#847dac',
    500: '#504b8a',
    950: '#000000',
  },
}
SCSS
$custom: #504b8a;
$custom-light: #847dac;
$custom-dark: #000000;
JSON
{
  "hex": "#504b8a",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 138
  },
  "hsl": {
    "h": 244.762,
    "s": 29.577,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44831,
    "c": 0.10102,
    "h": 285.2
  },
  "luminance": 0.08573
}

Semantic roles & 50–950 ramp

primary
#504B8A
secondary
#AAAE83
accent
#C662BE
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0910
muted
#7C7B7F

Preview Lab

Preview with #504B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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