#504AC0#504AC0

#504AC0 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.5% C 0.179 H 279.7°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#504AC0
RGBrgb(80, 74, 192)
HSLhsl(243, 48%, 52%)
HSVhsv(243, 61%, 75%)
CMYKcmyk(58.3%, 61.5%, 0%, 24.7%)
CIE-LABlab(38.56, 36.61, -61.31)
CIE-LCHlch(38.56, 71.41, 300.84°)
OKLaboklab(48.55% 0.03 -0.1762)
OKLCHoklch(48.55% 0.179 279.7)
XYZxyz(15.2685, 10.4077, 51.0633)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504AC0 #BAC04A
analogous
#4A7FC0 #504AC0 #8B4AC0
triadic
#504AC0 #C0504A #4AC050
tetradic
#504AC0 #C04A7F #BAC04A #4AC08B
square
#504AC0 #C04A7F #BAC04A #4AC08B
split-complementary
#504AC0 #C08B4A #7FC04A
monochromatic
#29256B #3A3598 #504AC0 #7C77D0 #A8A5E0

Accessibility & contrast

On white

6.81
#504AC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#504AC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504AC0
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504AC0#FFFFFF#000000##FFFFFF
##504AC01.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC4
Deuteranopia (green-blind)
#0056BE
Tritanopia (blue-blind)
#04677E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #504ac0;
/* rgb */ color: rgb(80, 74, 192);
/* oklch */ color: oklch(48.5% 0.179 279.7);
Tailwind
colors: {
  custom: {
    50: '#8c7dd4',
    500: '#504ac0',
    950: '#000000',
  },
}
SCSS
$custom: #504ac0;
$custom-light: #8c7dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#504ac0",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 192
  },
  "hsl": {
    "h": 243.051,
    "s": 48.361,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48546,
    "c": 0.17875,
    "h": 279.7
  },
  "luminance": 0.10409
}

Semantic roles & 50–950 ramp

primary
#504AC0
secondary
#CACD99
accent
#D850D1
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #504AC0

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

Preview Lab → · Contrast checker → · Palette generator →

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