#504FA7#504FA7

#504FA7 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.6% C 0.138 H 280.3°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#504FA7
RGBrgb(80, 79, 167)
HSLhsl(241, 36%, 48%)
HSVhsv(241, 53%, 65%)
CMYKcmyk(52.1%, 52.7%, 0%, 34.5%)
CIE-LABlab(38.00, 25.38, -47.48)
CIE-LCHlch(38.00, 53.83, 298.12°)
OKLaboklab(47.56% 0.0246 -0.1355)
OKLCHoklch(47.56% 0.138 280.3)
XYZxyz(13.0771, 10.0867, 37.8096)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FA7 #A6A74F
analogous
#4F7AA7 #504FA7 #7C4FA7
triadic
#504FA7 #A7504F #4FA750
tetradic
#504FA7 #A74F7A #A6A74F #4FA77C
square
#504FA7 #A74F7A #A6A74F #4FA77C
split-complementary
#504FA7 #A77C4F #7AA74F
monochromatic
#282854 #3C3B7D #504FA7 #7675BE #9F9FD2

Accessibility & contrast

On white

6.96
#504FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#504FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FA7
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FA7#FFFFFF#000000##FFFFFF
##504FA71.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215DAA
Deuteranopia (green-blind)
#1756A5
Tritanopia (blue-blind)
#2C6373
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #504fa7;
/* rgb */ color: rgb(80, 79, 167);
/* oklch */ color: oklch(47.6% 0.138 280.3);
Tailwind
colors: {
  custom: {
    50: '#8880c2',
    500: '#504fa7',
    950: '#000000',
  },
}
SCSS
$custom: #504fa7;
$custom-light: #8880c2;
$custom-dark: #000000;
JSON
{
  "hex": "#504fa7",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 167
  },
  "hsl": {
    "h": 240.682,
    "s": 35.772,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47558,
    "c": 0.13771,
    "h": 280.3
  },
  "luminance": 0.10087
}

Semantic roles & 50–950 ramp

primary
#504FA7
secondary
#BEBE93
accent
#CC5CCB
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #504FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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