#504CA4#504CA4

#504CA4 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.8% C 0.138 H 281.7°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#504CA4
RGBrgb(80, 76, 164)
HSLhsl(243, 37%, 47%)
HSVhsv(243, 54%, 64%)
CMYKcmyk(51.2%, 53.7%, 0%, 35.7%)
CIE-LABlab(37.03, 26.31, -47.24)
CIE-LCHlch(37.03, 54.08, 299.12°)
OKLaboklab(46.77% 0.0279 -0.1348)
OKLCHoklch(46.77% 0.138 281.7)
XYZxyz(12.5915, 9.5540, 36.2954)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CA4 #A0A44C
analogous
#4C74A4 #504CA4 #7C4CA4
triadic
#504CA4 #A4504C #4CA450
tetradic
#504CA4 #A44C74 #A0A44C #4CA47C
square
#504CA4 #A44C74 #A0A44C #4CA47C
split-complementary
#504CA4 #A47C4C #74A44C
monochromatic
#272550 #3C397A #504CA4 #7470BD #9D9AD0

Accessibility & contrast

On white

7.21
#504CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#504CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504CA4
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CA4#FFFFFF#000000##FFFFFF
##504CA41.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5AA7
Deuteranopia (green-blind)
#1454A2
Tritanopia (blue-blind)
#2F6070
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #504ca4;
/* rgb */ color: rgb(80, 76, 164);
/* oklch */ color: oklch(46.8% 0.138 281.7);
Tailwind
colors: {
  custom: {
    50: '#877ebf',
    500: '#504ca4',
    950: '#000000',
  },
}
SCSS
$custom: #504ca4;
$custom-light: #877ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#504ca4",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 164
  },
  "hsl": {
    "h": 242.727,
    "s": 36.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4677,
    "c": 0.13769,
    "h": 281.7
  },
  "luminance": 0.09555
}

Semantic roles & 50–950 ramp

primary
#504CA4
secondary
#BBBD8F
accent
#CD5BC8
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #504CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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