#504AA2#504AA2

#504AA2 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.2% C 0.138 H 282.7°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#504AA2
RGBrgb(80, 74, 162)
HSLhsl(244, 37%, 46%)
HSVhsv(244, 54%, 64%)
CMYKcmyk(50.6%, 54.3%, 0%, 36.5%)
CIE-LABlab(36.39, 26.94, -47.08)
CIE-LCHlch(36.39, 54.24, 299.78°)
OKLaboklab(46.25% 0.0302 -0.1344)
OKLCHoklch(46.25% 0.138 282.7)
XYZxyz(12.2767, 9.2110, 35.3064)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504AA2 #9CA24A
analogous
#4A70A2 #504AA2 #7C4AA2
triadic
#504AA2 #A2504A #4AA250
tetradic
#504AA2 #A24A70 #9CA24A #4AA27C
square
#504AA2 #A24A70 #9CA24A #4AA27C
split-complementary
#504AA2 #A27C4A #70A24A
monochromatic
#27244E #3B3778 #504AA2 #726DBC #9B97CF

Accessibility & contrast

On white

7.39
#504AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#504AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504AA2
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504AA2#FFFFFF#000000##FFFFFF
##504AA21.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A59A5
Deuteranopia (green-blind)
#1253A0
Tritanopia (blue-blind)
#315E6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #504aa2;
/* rgb */ color: rgb(80, 74, 162);
/* oklch */ color: oklch(46.2% 0.138 282.7);
Tailwind
colors: {
  custom: {
    50: '#877cbe',
    500: '#504aa2',
    950: '#000000',
  },
}
SCSS
$custom: #504aa2;
$custom-light: #877cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#504aa2",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 162
  },
  "hsl": {
    "h": 244.091,
    "s": 37.288,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46247,
    "c": 0.13771,
    "h": 282.7
  },
  "luminance": 0.09212
}

Semantic roles & 50–950 ramp

primary
#504AA2
secondary
#B8BC8C
accent
#CD5BC5
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #504AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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