#504EA2#504EA2

#504EA2 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.0% C 0.132 H 281.1°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#504EA2
RGBrgb(80, 78, 162)
HSLhsl(241, 35%, 47%)
HSVhsv(241, 52%, 64%)
CMYKcmyk(50.6%, 51.9%, 0%, 36.5%)
CIE-LABlab(37.41, 24.40, -45.43)
CIE-LCHlch(37.41, 51.57, 298.24°)
OKLaboklab(47.01% 0.0254 -0.1295)
OKLCHoklch(47.01% 0.132 281.1)
XYZxyz(12.5523, 9.7622, 35.3983)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504EA2 #A0A24E
analogous
#4E76A2 #504EA2 #7A4EA2
triadic
#504EA2 #A2504E #4EA250
tetradic
#504EA2 #A24E76 #A0A24E #4EA27A
square
#504EA2 #A24E76 #A0A24E #4EA27A
split-complementary
#504EA2 #A27A4E #76A24E
monochromatic
#27264F #3C3A79 #504EA2 #7472BB #9D9BCF

Accessibility & contrast

On white

7.11
#504EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#504EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504EA2
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504EA2#FFFFFF#000000##FFFFFF
##504EA21.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255BA5
Deuteranopia (green-blind)
#1E55A0
Tritanopia (blue-blind)
#316070
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #504ea2;
/* rgb */ color: rgb(80, 78, 162);
/* oklch */ color: oklch(47.0% 0.132 281.1);
Tailwind
colors: {
  custom: {
    50: '#877fbe',
    500: '#504ea2',
    950: '#000000',
  },
}
SCSS
$custom: #504ea2;
$custom-light: #877fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#504ea2",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 241.429,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47014,
    "c": 0.13197,
    "h": 281.1
  },
  "luminance": 0.09763
}

Semantic roles & 50–950 ramp

primary
#504EA2
secondary
#BBBC90
accent
#CB5DC8
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #504EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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