#504D99#504D99

#504D99 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.2% C 0.120 H 282.4°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#504D99
RGBrgb(80, 77, 153)
HSLhsl(242, 33%, 45%)
HSVhsv(242, 50%, 60%)
CMYKcmyk(47.7%, 49.7%, 0%, 40%)
CIE-LABlab(36.58, 22.16, -41.36)
CIE-LCHlch(36.58, 46.92, 298.19°)
OKLaboklab(46.2% 0.0258 -0.1175)
OKLCHoklch(46.2% 0.12 282.4)
XYZxyz(11.7102, 9.3126, 31.3113)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504D99 #96994D
analogous
#4D7099 #504D99 #764D99
triadic
#504D99 #99504D #4D9950
tetradic
#504D99 #994D70 #96994D #4D9976
square
#504D99 #994D70 #96994D #4D9976
split-complementary
#504D99 #99764D #70994D
monochromatic
#252448 #3B3970 #504D99 #706DB6 #9896CA

Accessibility & contrast

On white

7.34
#504D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#504D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504D99
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504D99#FFFFFF#000000##FFFFFF
##504D991.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C599C
Deuteranopia (green-blind)
#275397
Tritanopia (blue-blind)
#375D6C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #504d99;
/* rgb */ color: rgb(80, 77, 153);
/* oklch */ color: oklch(46.2% 0.120 282.4);
Tailwind
colors: {
  custom: {
    50: '#867eb7',
    500: '#504d99',
    950: '#000000',
  },
}
SCSS
$custom: #504d99;
$custom-light: #867eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#504d99",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 153
  },
  "hsl": {
    "h": 242.368,
    "s": 33.043,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46204,
    "c": 0.12032,
    "h": 282.4
  },
  "luminance": 0.09313
}

Semantic roles & 50–950 ramp

primary
#504D99
secondary
#B5B78B
accent
#C95FC5
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0B0A11
muted
#7C7C80

Preview Lab

Preview with #504D99

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

Preview Lab → · Contrast checker → · Palette generator →

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