#504DAE#504DAE

#504DAE is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.7% C 0.150 H 280.4°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#504DAE
RGBrgb(80, 77, 174)
HSLhsl(242, 39%, 49%)
HSVhsv(242, 56%, 68%)
CMYKcmyk(54%, 55.7%, 0%, 31.8%)
CIE-LABlab(37.96, 28.91, -51.69)
CIE-LCHlch(37.96, 59.22, 299.22°)
OKLaboklab(47.69% 0.0272 -0.1479)
OKLCHoklch(47.69% 0.15 280.4)
XYZxyz(13.5998, 10.0684, 41.2630)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DAE #ABAE4D
analogous
#4D7BAE #504DAE #814DAE
triadic
#504DAE #AE504D #4DAE50
tetradic
#504DAE #AE4D7B #ABAE4D #4DAE81
square
#504DAE #AE4D7B #ABAE4D #4DAE81
split-complementary
#504DAE #AE814D #7BAE4D
monochromatic
#292759 #3C3A84 #504DAE #7876C2 #A2A0D5

Accessibility & contrast

On white

6.97
#504DAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#504DAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DAE
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DAE#FFFFFF#000000##FFFFFF
##504DAE1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C5DB1
Deuteranopia (green-blind)
#0056AC
Tritanopia (blue-blind)
#266376
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #504dae;
/* rgb */ color: rgb(80, 77, 174);
/* oklch */ color: oklch(47.7% 0.150 280.4);
Tailwind
colors: {
  custom: {
    50: '#897fc7',
    500: '#504dae',
    950: '#000000',
  },
}
SCSS
$custom: #504dae;
$custom-light: #897fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#504dae",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 174
  },
  "hsl": {
    "h": 241.856,
    "s": 38.645,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47685,
    "c": 0.15038,
    "h": 280.4
  },
  "luminance": 0.10069
}

Semantic roles & 50–950 ramp

primary
#504DAE
secondary
#C1C295
accent
#CF59CB
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #504DAE

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

Preview Lab → · Contrast checker → · Palette generator →

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