#504CA6#504CA6

#504CA6 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.9% C 0.141 H 281.5°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#504CA6
RGBrgb(80, 76, 166)
HSLhsl(243, 37%, 47%)
HSVhsv(243, 54%, 65%)
CMYKcmyk(51.8%, 54.2%, 0%, 34.9%)
CIE-LABlab(37.16, 26.95, -48.22)
CIE-LCHlch(37.16, 55.24, 299.20°)
OKLaboklab(46.91% 0.0281 -0.1377)
OKLCHoklch(46.91% 0.141 281.5)
XYZxyz(12.7735, 9.6268, 37.2541)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CA6 #A2A64C
analogous
#4C75A6 #504CA6 #7D4CA6
triadic
#504CA6 #A6504C #4CA650
tetradic
#504CA6 #A64C75 #A2A64C #4CA67D
square
#504CA6 #A64C75 #A2A64C #4CA67D
split-complementary
#504CA6 #A67D4C #75A64C
monochromatic
#282652 #3C397C #504CA6 #7571BE #9E9BD1

Accessibility & contrast

On white

7.18
#504CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#504CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504CA6
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CA6#FFFFFF#000000##FFFFFF
##504CA61.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5BA9
Deuteranopia (green-blind)
#0F54A4
Tritanopia (blue-blind)
#2E6071
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #504ca6;
/* rgb */ color: rgb(80, 76, 166);
/* oklch */ color: oklch(46.9% 0.141 281.5);
Tailwind
colors: {
  custom: {
    50: '#887ec1',
    500: '#504ca6',
    950: '#000000',
  },
}
SCSS
$custom: #504ca6;
$custom-light: #887ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#504ca6",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 166
  },
  "hsl": {
    "h": 242.667,
    "s": 37.19,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46913,
    "c": 0.14054,
    "h": 281.5
  },
  "luminance": 0.09628
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #504CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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