#504D97#504D97

#504D97 is a mid, moderate blue. Relative luminance 0.092; OKLCH L 46.1% C 0.117 H 282.6°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#504D97
RGBrgb(80, 77, 151)
HSLhsl(242, 32%, 45%)
HSVhsv(242, 49%, 59%)
CMYKcmyk(47%, 49%, 0%, 40.8%)
CIE-LABlab(36.46, 21.53, -40.35)
CIE-LCHlch(36.46, 45.73, 298.09°)
OKLaboklab(46.07% 0.0256 -0.1146)
OKLCHoklch(46.07% 0.117 282.6)
XYZxyz(11.5464, 9.2470, 30.4486)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504D97 #94974D
analogous
#4D6F97 #504D97 #754D97
triadic
#504D97 #97504D #4D9750
tetradic
#504D97 #974D6F #94974D #4D9775
square
#504D97 #974D6F #94974D #4D9775
split-complementary
#504D97 #97754D #6F974D
monochromatic
#252446 #3B386E #504D97 #706DB4 #9795C9

Accessibility & contrast

On white

7.37
#504D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#504D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504D97
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504D97#FFFFFF#000000##FFFFFF
##504D971.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E589A
Deuteranopia (green-blind)
#2A5395
Tritanopia (blue-blind)
#385D6B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #504d97;
/* rgb */ color: rgb(80, 77, 151);
/* oklch */ color: oklch(46.1% 0.117 282.6);
Tailwind
colors: {
  custom: {
    50: '#867eb6',
    500: '#504d97',
    950: '#000000',
  },
}
SCSS
$custom: #504d97;
$custom-light: #867eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#504d97",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 151
  },
  "hsl": {
    "h": 242.432,
    "s": 32.456,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46071,
    "c": 0.11738,
    "h": 282.6
  },
  "luminance": 0.09248
}

Semantic roles & 50–950 ramp

primary
#504D97
secondary
#B4B68A
accent
#C95FC4
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0B0A11
muted
#7C7C80

Preview Lab

Preview with #504D97

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

Preview Lab → · Contrast checker → · Palette generator →

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