#504AAF#504AAF

#504AAF is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.2% C 0.156 H 281.3°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#504AAF
RGBrgb(80, 74, 175)
HSLhsl(244, 41%, 49%)
HSVhsv(244, 58%, 69%)
CMYKcmyk(54.3%, 57.7%, 0%, 31.4%)
CIE-LABlab(37.29, 31.11, -53.37)
CIE-LCHlch(37.29, 61.77, 300.24°)
OKLaboklab(47.21% 0.0305 -0.1529)
OKLCHoklch(47.21% 0.156 281.3)
XYZxyz(13.4925, 9.6974, 41.7099)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504AAF #A9AF4A
analogous
#4A77AF #504AAF #834AAF
triadic
#504AAF #AF504A #4AAF50
tetradic
#504AAF #AF4A77 #A9AF4A #4AAF83
square
#504AAF #AF4A77 #A9AF4A #4AAF83
split-complementary
#504AAF #AF834A #77AF4A
monochromatic
#292659 #3C3884 #504AAF #7773C4 #A19ED6

Accessibility & contrast

On white

7.14
#504AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#504AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504AAF
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504AAF#FFFFFF#000000##FFFFFF
##504AAF1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#0054AD
Tritanopia (blue-blind)
#256175
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #504aaf;
/* rgb */ color: rgb(80, 74, 175);
/* oklch */ color: oklch(47.2% 0.156 281.3);
Tailwind
colors: {
  custom: {
    50: '#897dc8',
    500: '#504aaf',
    950: '#000000',
  },
}
SCSS
$custom: #504aaf;
$custom-light: #897dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#504aaf",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 175
  },
  "hsl": {
    "h": 243.564,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.47209,
    "c": 0.15586,
    "h": 281.3
  },
  "luminance": 0.09698
}

Semantic roles & 50–950 ramp

primary
#504AAF
secondary
#C0C292
accent
#D057C9
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #504AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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