#504FA5#504FA5

#504FA5 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.4% C 0.135 H 280.5°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#504FA5
RGBrgb(80, 79, 165)
HSLhsl(241, 35%, 48%)
HSVhsv(241, 52%, 65%)
CMYKcmyk(51.5%, 52.1%, 0%, 35.3%)
CIE-LABlab(37.87, 24.73, -46.50)
CIE-LCHlch(37.87, 52.66, 298.01°)
OKLaboklab(47.42% 0.0245 -0.1326)
OKLCHoklch(47.42% 0.135 280.5)
XYZxyz(12.8937, 10.0133, 36.8434)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FA5 #A4A54F
analogous
#4F79A5 #504FA5 #7B4FA5
triadic
#504FA5 #A5504F #4FA550
tetradic
#504FA5 #A54F79 #A4A54F #4FA57B
square
#504FA5 #A54F79 #A4A54F #4FA57B
split-complementary
#504FA5 #A57B4F #79A54F
monochromatic
#282752 #3C3B7C #504FA5 #7575BD #9E9ED1

Accessibility & contrast

On white

6.99
#504FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#504FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FA5
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FA5#FFFFFF#000000##FFFFFF
##504FA51.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245CA8
Deuteranopia (green-blind)
#1B56A3
Tritanopia (blue-blind)
#2E6272
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #504fa5;
/* rgb */ color: rgb(80, 79, 165);
/* oklch */ color: oklch(47.4% 0.135 280.5);
Tailwind
colors: {
  custom: {
    50: '#8780c0',
    500: '#504fa5',
    950: '#000000',
  },
}
SCSS
$custom: #504fa5;
$custom-light: #8780c0;
$custom-dark: #000000;
JSON
{
  "hex": "#504fa5",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 240.698,
    "s": 35.246,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47417,
    "c": 0.13485,
    "h": 280.5
  },
  "luminance": 0.10014
}

Semantic roles & 50–950 ramp

primary
#504FA5
secondary
#BDBD92
accent
#CB5DCA
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #504FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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