#504E8A#504E8A

#504E8A is a mid, moderate blue. Relative luminance 0.090; OKLCH L 45.5% C 0.096 H 283.4°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#504E8A
RGBrgb(80, 78, 138)
HSLhsl(242, 28%, 42%)
HSVhsv(242, 43%, 54%)
CMYKcmyk(42%, 43.5%, 0%, 45.9%)
CIE-LABlab(35.96, 16.84, -33.23)
CIE-LCHlch(35.96, 37.25, 296.87°)
OKLaboklab(45.45% 0.0223 -0.0937)
OKLCHoklch(45.45% 0.096 283.4)
XYZxyz(10.6188, 8.9888, 25.2153)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504E8A #888A4E
analogous
#4E6A8A #504E8A #6E4E8A
triadic
#504E8A #8A504E #4E8A50
tetradic
#504E8A #8A4E6A #888A4E #4E8A6E
square
#504E8A #8A4E6A #888A4E #4E8A6E
split-complementary
#504E8A #8A6E4E #6A8A4E
monochromatic
#23223C #393863 #504E8A #6C6AAB #9391C1

Accessibility & contrast

On white

7.51
#504E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#504E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504E8A
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504E8A#FFFFFF#000000##FFFFFF
##504E8A1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39578C
Deuteranopia (green-blind)
#365389
Tritanopia (blue-blind)
#3F5A65
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #504e8a;
/* rgb */ color: rgb(80, 78, 138);
/* oklch */ color: oklch(45.5% 0.096 283.4);
Tailwind
colors: {
  custom: {
    50: '#847fac',
    500: '#504e8a',
    950: '#000000',
  },
}
SCSS
$custom: #504e8a;
$custom-light: #847fac;
$custom-dark: #000000;
JSON
{
  "hex": "#504e8a",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 138
  },
  "hsl": {
    "h": 242,
    "s": 27.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4545,
    "c": 0.09632,
    "h": 283.4
  },
  "luminance": 0.08989
}

Semantic roles & 50–950 ramp

primary
#504E8A
secondary
#ACAE86
accent
#C464C1
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0A10
muted
#7C7C7F

Preview Lab

Preview with #504E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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