#504CC4#504CC4

#504CC4 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 49.2% C 0.181 H 278.9°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#504CC4
RGBrgb(80, 76, 196)
HSLhsl(242, 50%, 53%)
HSVhsv(242, 61%, 77%)
CMYKcmyk(59.2%, 61.2%, 0%, 23.1%)
CIE-LABlab(39.34, 36.69, -62.38)
CIE-LCHlch(39.34, 72.37, 300.46°)
OKLaboklab(49.21% 0.028 -0.1793)
OKLCHoklch(49.21% 0.182 278.9)
XYZxyz(15.8533, 10.8587, 53.4744)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CC4 #C0C44C
analogous
#4C84C4 #504CC4 #8C4CC4
triadic
#504CC4 #C4504C #4CC450
tetradic
#504CC4 #C44C84 #C0C44C #4CC48C
square
#504CC4 #C44C84 #C0C44C #4CC48C
split-complementary
#504CC4 #C48C4C #84C44C
monochromatic
#282571 #38349F #504CC4 #7D7AD3 #AAA8E2

Accessibility & contrast

On white

6.62
#504CC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#504CC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CC4
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CC4#FFFFFF#000000##FFFFFF
##504CC41.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#0058C2
Tritanopia (blue-blind)
#006981
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #504cc4;
/* rgb */ color: rgb(80, 76, 196);
/* oklch */ color: oklch(49.2% 0.181 278.9);
Tailwind
colors: {
  custom: {
    50: '#8c7ed7',
    500: '#504cc4',
    950: '#000000',
  },
}
SCSS
$custom: #504cc4;
$custom-light: #8c7ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#504cc4",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 196
  },
  "hsl": {
    "h": 242,
    "s": 50.42,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49214,
    "c": 0.1815,
    "h": 278.9
  },
  "luminance": 0.1086
}

Semantic roles & 50–950 ramp

primary
#504CC4
secondary
#CED09C
accent
#DA4ED5
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #504CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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