#504DA5#504DA5

#504DA5 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.0% C 0.138 H 281.2°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#504DA5
RGBrgb(80, 77, 165)
HSLhsl(242, 36%, 47%)
HSVhsv(242, 53%, 65%)
CMYKcmyk(51.5%, 53.3%, 0%, 35.3%)
CIE-LABlab(37.35, 26.00, -47.32)
CIE-LCHlch(37.35, 53.99, 298.78°)
OKLaboklab(47.03% 0.0268 -0.135)
OKLCHoklch(47.03% 0.138 281.2)
XYZxyz(12.7516, 9.7291, 36.7960)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DA5 #A2A54D
analogous
#4D76A5 #504DA5 #7C4DA5
triadic
#504DA5 #A5504D #4DA550
tetradic
#504DA5 #A54D76 #A2A54D #4DA57C
square
#504DA5 #A54D76 #A2A54D #4DA57C
split-complementary
#504DA5 #A57C4D #76A54D
monochromatic
#282652 #3C3A7B #504DA5 #7572BD #9E9CD1

Accessibility & contrast

On white

7.13
#504DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#504DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504DA5
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DA5#FFFFFF#000000##FFFFFF
##504DA51.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5BA8
Deuteranopia (green-blind)
#1555A3
Tritanopia (blue-blind)
#2E6171
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #504da5;
/* rgb */ color: rgb(80, 77, 165);
/* oklch */ color: oklch(47.0% 0.138 281.2);
Tailwind
colors: {
  custom: {
    50: '#877fc0',
    500: '#504da5',
    950: '#000000',
  },
}
SCSS
$custom: #504da5;
$custom-light: #877fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#504da5",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 165
  },
  "hsl": {
    "h": 242.045,
    "s": 36.364,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47032,
    "c": 0.13769,
    "h": 281.2
  },
  "luminance": 0.0973
}

Semantic roles & 50–950 ramp

primary
#504DA5
secondary
#BCBD90
accent
#CC5BC9
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #504DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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