#504AC2#504AC2

#504AC2 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.7% C 0.181 H 279.5°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#504AC2
RGBrgb(80, 74, 194)
HSLhsl(243, 50%, 53%)
HSVhsv(243, 62%, 76%)
CMYKcmyk(58.8%, 61.9%, 0%, 23.9%)
CIE-LABlab(38.72, 37.26, -62.22)
CIE-LCHlch(38.72, 72.53, 300.91°)
OKLaboklab(48.71% 0.0299 -0.1789)
OKLCHoklch(48.71% 0.181 279.5)
XYZxyz(15.4916, 10.4970, 52.2383)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504AC2 #BCC24A
analogous
#4A80C2 #504AC2 #8C4AC2
triadic
#504AC2 #C2504A #4AC250
tetradic
#504AC2 #C24A80 #BCC24A #4AC28C
square
#504AC2 #C24A80 #BCC24A #4AC28C
split-complementary
#504AC2 #C28C4A #80C24A
monochromatic
#28256D #39349B #504AC2 #7C78D1 #A9A6E1

Accessibility & contrast

On white

6.78
#504AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#504AC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504AC2
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504AC2#FFFFFF#000000##FFFFFF
##504AC21.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#0056C0
Tritanopia (blue-blind)
#00687F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #504ac2;
/* rgb */ color: rgb(80, 74, 194);
/* oklch */ color: oklch(48.7% 0.181 279.5);
Tailwind
colors: {
  custom: {
    50: '#8c7dd5',
    500: '#504ac2',
    950: '#000000',
  },
}
SCSS
$custom: #504ac2;
$custom-light: #8c7dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#504ac2",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 194
  },
  "hsl": {
    "h": 243,
    "s": 49.587,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48709,
    "c": 0.18138,
    "h": 279.5
  },
  "luminance": 0.10498
}

Semantic roles & 50–950 ramp

primary
#504AC2
secondary
#CBCE9A
accent
#D94FD2
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #504AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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