#504FA2#504FA2

#504FA2 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.2% C 0.131 H 280.7°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#504FA2
RGBrgb(80, 79, 162)
HSLhsl(241, 34%, 47%)
HSVhsv(241, 51%, 64%)
CMYKcmyk(50.6%, 51.2%, 0%, 36.5%)
CIE-LABlab(37.67, 23.76, -45.01)
CIE-LCHlch(37.67, 50.90, 297.83°)
OKLaboklab(47.21% 0.0243 -0.1282)
OKLCHoklch(47.21% 0.131 280.7)
XYZxyz(12.6238, 9.9054, 35.4222)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FA2 #A1A24F
analogous
#4F78A2 #504FA2 #7A4FA2
triadic
#504FA2 #A2504F #4FA250
tetradic
#504FA2 #A24F78 #A1A24F #4FA27A
square
#504FA2 #A24F78 #A1A24F #4FA27A
split-complementary
#504FA2 #A27A4F #78A24F
monochromatic
#272750 #3C3B79 #504FA2 #7473BB #9D9CCF

Accessibility & contrast

On white

7.04
#504FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#504FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504FA2
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FA2#FFFFFF#000000##FFFFFF
##504FA21.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275CA5
Deuteranopia (green-blind)
#2056A0
Tritanopia (blue-blind)
#306171
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #504fa2;
/* rgb */ color: rgb(80, 79, 162);
/* oklch */ color: oklch(47.2% 0.131 280.7);
Tailwind
colors: {
  custom: {
    50: '#8780be',
    500: '#504fa2',
    950: '#000000',
  },
}
SCSS
$custom: #504fa2;
$custom-light: #8780be;
$custom-dark: #000000;
JSON
{
  "hex": "#504fa2",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 240.723,
    "s": 34.44,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47209,
    "c": 0.13052,
    "h": 280.7
  },
  "luminance": 0.09906
}

Semantic roles & 50–950 ramp

primary
#504FA2
secondary
#BBBC91
accent
#CB5DC9
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #504FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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