#504FA4#504FA4

#504FA4 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.3% C 0.133 H 280.5°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#504FA4
RGBrgb(80, 79, 164)
HSLhsl(241, 35%, 48%)
HSVhsv(241, 52%, 64%)
CMYKcmyk(51.2%, 51.8%, 0%, 35.7%)
CIE-LABlab(37.80, 24.41, -46.00)
CIE-LCHlch(37.80, 52.08, 297.95°)
OKLaboklab(47.35% 0.0244 -0.1312)
OKLCHoklch(47.35% 0.133 280.5)
XYZxyz(12.8030, 9.9771, 36.3659)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FA4 #A3A44F
analogous
#4F78A4 #504FA4 #7B4FA4
triadic
#504FA4 #A4504F #4FA450
tetradic
#504FA4 #A44F78 #A3A44F #4FA47B
square
#504FA4 #A44F78 #A3A44F #4FA47B
split-complementary
#504FA4 #A47B4F #78A44F
monochromatic
#282751 #3C3B7B #504FA4 #7574BC #9E9DD0

Accessibility & contrast

On white

7.01
#504FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#504FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FA4
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FA4#FFFFFF#000000##FFFFFF
##504FA41.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255CA7
Deuteranopia (green-blind)
#1D56A2
Tritanopia (blue-blind)
#2F6272
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #504fa4;
/* rgb */ color: rgb(80, 79, 164);
/* oklch */ color: oklch(47.3% 0.133 280.5);
Tailwind
colors: {
  custom: {
    50: '#8780bf',
    500: '#504fa4',
    950: '#000000',
  },
}
SCSS
$custom: #504fa4;
$custom-light: #8780bf;
$custom-dark: #000000;
JSON
{
  "hex": "#504fa4",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 164
  },
  "hsl": {
    "h": 240.706,
    "s": 34.979,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47348,
    "c": 0.13341,
    "h": 280.5
  },
  "luminance": 0.09978
}

Semantic roles & 50–950 ramp

primary
#504FA4
secondary
#BCBD92
accent
#CB5DCA
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #504FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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