#504CAE#504CAE

#504CAE is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.5% C 0.152 H 280.8°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#504CAE
RGBrgb(80, 76, 174)
HSLhsl(242, 39%, 49%)
HSVhsv(242, 56%, 68%)
CMYKcmyk(54%, 56.3%, 0%, 31.8%)
CIE-LABlab(37.72, 29.54, -52.09)
CIE-LCHlch(37.72, 59.88, 299.56°)
OKLaboklab(47.5% 0.0283 -0.1491)
OKLCHoklch(47.5% 0.152 280.8)
XYZxyz(13.5303, 9.9295, 41.2398)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CAE #AAAE4C
analogous
#4C79AE #504CAE #814CAE
triadic
#504CAE #AE504C #4CAE50
tetradic
#504CAE #AE4C79 #AAAE4C #4CAE81
square
#504CAE #AE4C79 #AAAE4C #4CAE81
split-complementary
#504CAE #AE814C #79AE4C
monochromatic
#292759 #3C3983 #504CAE #7875C3 #A19FD5

Accessibility & contrast

On white

7.03
#504CAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#504CAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504CAE
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CAE#FFFFFF#000000##FFFFFF
##504CAE1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#055CB1
Deuteranopia (green-blind)
#0055AC
Tritanopia (blue-blind)
#266375
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #504cae;
/* rgb */ color: rgb(80, 76, 174);
/* oklch */ color: oklch(47.5% 0.152 280.8);
Tailwind
colors: {
  custom: {
    50: '#897ec7',
    500: '#504cae',
    950: '#000000',
  },
}
SCSS
$custom: #504cae;
$custom-light: #897ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#504cae",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 174
  },
  "hsl": {
    "h": 242.449,
    "s": 39.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.475,
    "c": 0.15176,
    "h": 280.8
  },
  "luminance": 0.0993
}

Semantic roles & 50–950 ramp

primary
#504CAE
secondary
#C0C294
accent
#CF59CA
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #504CAE

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

Preview Lab → · Contrast checker → · Palette generator →

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