#504FA8#504FA8

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

Color values

HEX#504FA8
RGBrgb(80, 79, 168)
HSLhsl(241, 36%, 48%)
HSVhsv(241, 53%, 66%)
CMYKcmyk(52.4%, 53%, 0%, 34.1%)
CIE-LABlab(38.06, 25.70, -47.97)
CIE-LCHlch(38.06, 54.42, 298.18°)
OKLaboklab(47.63% 0.0247 -0.1369)
OKLCHoklch(47.63% 0.139 280.2)
XYZxyz(13.1699, 10.1238, 38.2983)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FA8 #A7A84F
analogous
#4F7AA8 #504FA8 #7C4FA8
triadic
#504FA8 #A8504F #4FA850
tetradic
#504FA8 #A84F7A #A7A84F #4FA87C
square
#504FA8 #A84F7A #A7A84F #4FA87C
split-complementary
#504FA8 #A87C4F #7AA84F
monochromatic
#282855 #3C3B7E #504FA8 #7776BE #A09FD2

Accessibility & contrast

On white

6.94
#504FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#504FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FA8
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FA8#FFFFFF#000000##FFFFFF
##504FA81.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205DAB
Deuteranopia (green-blind)
#1556A6
Tritanopia (blue-blind)
#2C6374
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #504fa8;
/* rgb */ color: rgb(80, 79, 168);
/* oklch */ color: oklch(47.6% 0.139 280.2);
Tailwind
colors: {
  custom: {
    50: '#8880c2',
    500: '#504fa8',
    950: '#000000',
  },
}
SCSS
$custom: #504fa8;
$custom-light: #8880c2;
$custom-dark: #000000;
JSON
{
  "hex": "#504fa8",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 168
  },
  "hsl": {
    "h": 240.674,
    "s": 36.032,
    "l": 48.431
  },
  "oklch": {
    "l": 0.47629,
    "c": 0.13914,
    "h": 280.2
  },
  "luminance": 0.10125
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #504FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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