#504DC5#504DC5

#504DC5 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.5% C 0.182 H 278.5°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#504DC5
RGBrgb(80, 77, 197)
HSLhsl(242, 51%, 54%)
HSVhsv(242, 61%, 77%)
CMYKcmyk(59.4%, 60.9%, 0%, 22.7%)
CIE-LABlab(39.65, 36.40, -62.45)
CIE-LCHlch(39.65, 72.29, 300.24°)
OKLaboklab(49.47% 0.027 -0.1795)
OKLCHoklch(49.47% 0.182 278.5)
XYZxyz(16.0370, 11.0433, 54.0990)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DC5 #C2C54D
analogous
#4D86C5 #504DC5 #8C4DC5
triadic
#504DC5 #C5504D #4DC550
tetradic
#504DC5 #C54D86 #C2C54D #4DC58C
square
#504DC5 #C54D86 #C2C54D #4DC58C
split-complementary
#504DC5 #C58C4D #86C54D
monochromatic
#272572 #3734A0 #504DC5 #7D7BD4 #ABA9E3

Accessibility & contrast

On white

6.54
#504DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#504DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DC5
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DC5#FFFFFF#000000##FFFFFF
##504DC51.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C9
Deuteranopia (green-blind)
#0059C3
Tritanopia (blue-blind)
#006A81
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #504dc5;
/* rgb */ color: rgb(80, 77, 197);
/* oklch */ color: oklch(49.5% 0.182 278.5);
Tailwind
colors: {
  custom: {
    50: '#8c7fd7',
    500: '#504dc5',
    950: '#000000',
  },
}
SCSS
$custom: #504dc5;
$custom-light: #8c7fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#504dc5",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 197
  },
  "hsl": {
    "h": 241.5,
    "s": 50.847,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49467,
    "c": 0.18157,
    "h": 278.5
  },
  "luminance": 0.11044
}

Semantic roles & 50–950 ramp

primary
#504DC5
secondary
#CFD19D
accent
#DA4DD7
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #504DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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