#504CA8#504CA8

#504CA8 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.1% C 0.143 H 281.3°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#504CA8
RGBrgb(80, 76, 168)
HSLhsl(243, 38%, 48%)
HSVhsv(243, 55%, 66%)
CMYKcmyk(52.4%, 54.8%, 0%, 34.1%)
CIE-LABlab(37.30, 27.60, -49.20)
CIE-LCHlch(37.30, 56.41, 299.29°)
OKLaboklab(47.06% 0.0281 -0.1406)
OKLCHoklch(47.06% 0.143 281.3)
XYZxyz(12.9584, 9.7008, 38.2278)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CA8 #A4A84C
analogous
#4C76A8 #504CA8 #7E4CA8
triadic
#504CA8 #A8504C #4CA850
tetradic
#504CA8 #A84C76 #A4A84C #4CA87E
square
#504CA8 #A84C76 #A4A84C #4CA87E
split-complementary
#504CA8 #A87E4C #76A84C
monochromatic
#282654 #3C397E #504CA8 #7572BF #9E9CD2

Accessibility & contrast

On white

7.14
#504CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#504CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504CA8
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CA8#FFFFFF#000000##FFFFFF
##504CA81.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165BAB
Deuteranopia (green-blind)
#0854A6
Tritanopia (blue-blind)
#2C6172
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #504ca8;
/* rgb */ color: rgb(80, 76, 168);
/* oklch */ color: oklch(47.1% 0.143 281.3);
Tailwind
colors: {
  custom: {
    50: '#887ec2',
    500: '#504ca8',
    950: '#000000',
  },
}
SCSS
$custom: #504ca8;
$custom-light: #887ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#504ca8",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 168
  },
  "hsl": {
    "h": 242.609,
    "s": 37.705,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47058,
    "c": 0.14336,
    "h": 281.3
  },
  "luminance": 0.09702
}

Semantic roles & 50–950 ramp

primary
#504CA8
secondary
#BDBF91
accent
#CE5AC9
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #504CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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