#504FA1#504FA1

#504FA1 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.129 H 280.8°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#504FA1
RGBrgb(80, 79, 161)
HSLhsl(241, 34%, 47%)
HSVhsv(241, 51%, 63%)
CMYKcmyk(50.3%, 50.9%, 0%, 36.9%)
CIE-LABlab(37.61, 23.44, -44.52)
CIE-LCHlch(37.61, 50.31, 297.77°)
OKLaboklab(47.14% 0.0242 -0.1268)
OKLCHoklch(47.14% 0.129 280.8)
XYZxyz(12.5353, 9.8700, 34.9559)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FA1 #A0A14F
analogous
#4F77A1 #504FA1 #794FA1
triadic
#504FA1 #A1504F #4FA150
tetradic
#504FA1 #A14F77 #A0A14F #4FA179
square
#504FA1 #A14F77 #A0A14F #4FA179
split-complementary
#504FA1 #A1794F #77A14F
monochromatic
#27274F #3C3B78 #504FA1 #7473BA #9D9CCE

Accessibility & contrast

On white

7.06
#504FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#504FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504FA1
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FA1#FFFFFF#000000##FFFFFF
##504FA11.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285CA4
Deuteranopia (green-blind)
#21569F
Tritanopia (blue-blind)
#316170
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #504fa1;
/* rgb */ color: rgb(80, 79, 161);
/* oklch */ color: oklch(47.1% 0.129 280.8);
Tailwind
colors: {
  custom: {
    50: '#8780bd',
    500: '#504fa1',
    950: '#000000',
  },
}
SCSS
$custom: #504fa1;
$custom-light: #8780bd;
$custom-dark: #000000;
JSON
{
  "hex": "#504fa1",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 161
  },
  "hsl": {
    "h": 240.732,
    "s": 34.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4714,
    "c": 0.12908,
    "h": 280.8
  },
  "luminance": 0.09871
}

Semantic roles & 50–950 ramp

primary
#504FA1
secondary
#BBBB91
accent
#CA5EC9
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #504FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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