#504FAC#504FAC

#504FAC is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.9% C 0.145 H 279.9°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#504FAC
RGBrgb(80, 79, 172)
HSLhsl(241, 37%, 49%)
HSVhsv(241, 54%, 67%)
CMYKcmyk(53.5%, 54.1%, 0%, 32.5%)
CIE-LABlab(38.33, 27.00, -49.91)
CIE-LCHlch(38.33, 56.74, 298.41°)
OKLaboklab(47.92% 0.0249 -0.1426)
OKLCHoklch(47.92% 0.145 279.9)
XYZxyz(13.5483, 10.2752, 40.2911)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504FAC #ABAC4F
analogous
#4F7DAC #504FAC #7F4FAC
triadic
#504FAC #AC504F #4FAC50
tetradic
#504FAC #AC4F7D #ABAC4F #4FAC7F
square
#504FAC #AC4F7D #ABAC4F #4FAC7F
split-complementary
#504FAC #AC7F4F #7DAC4F
monochromatic
#292858 #3C3C82 #504FAC #7877C1 #A2A1D4

Accessibility & contrast

On white

6.87
#504FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#504FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504FAC
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504FAC#FFFFFF#000000##FFFFFF
##504FAC1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195EAF
Deuteranopia (green-blind)
#0957AA
Tritanopia (blue-blind)
#286476
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #504fac;
/* rgb */ color: rgb(80, 79, 172);
/* oklch */ color: oklch(47.9% 0.145 279.9);
Tailwind
colors: {
  custom: {
    50: '#8880c5',
    500: '#504fac',
    950: '#000000',
  },
}
SCSS
$custom: #504fac;
$custom-light: #8880c5;
$custom-dark: #000000;
JSON
{
  "hex": "#504fac",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 172
  },
  "hsl": {
    "h": 240.645,
    "s": 37.052,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47915,
    "c": 0.14481,
    "h": 279.9
  },
  "luminance": 0.10276
}

Semantic roles & 50–950 ramp

primary
#504FAC
secondary
#C1C196
accent
#CD5BCC
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #504FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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