#504DC2#504DC2

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

Color values

HEX#504DC2
RGBrgb(80, 77, 194)
HSLhsl(242, 49%, 53%)
HSVhsv(242, 60%, 76%)
CMYKcmyk(58.8%, 60.3%, 0%, 23.9%)
CIE-LABlab(39.42, 35.43, -61.08)
CIE-LCHlch(39.42, 70.61, 300.11°)
OKLaboklab(49.23% 0.0271 -0.1755)
OKLCHoklch(49.23% 0.178 278.8)
XYZxyz(15.6967, 10.9072, 52.3066)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DC2 #BFC24D
analogous
#4D85C2 #504DC2 #8A4DC2
triadic
#504DC2 #C2504D #4DC250
tetradic
#504DC2 #C24D85 #BFC24D #4DC28A
square
#504DC2 #C24D85 #BFC24D #4DC28A
split-complementary
#504DC2 #C28A4D #85C24D
monochromatic
#28266F #38369C #504DC2 #7D7BD2 #AAA8E1

Accessibility & contrast

On white

6.60
#504DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#504DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DC2
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DC2#FFFFFF#000000##FFFFFF
##504DC21.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0058C0
Tritanopia (blue-blind)
#006980
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #504dc2;
/* rgb */ color: rgb(80, 77, 194);
/* oklch */ color: oklch(49.2% 0.178 278.8);
Tailwind
colors: {
  custom: {
    50: '#8c7fd5',
    500: '#504dc2',
    950: '#000000',
  },
}
SCSS
$custom: #504dc2;
$custom-light: #8c7fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#504dc2",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 194
  },
  "hsl": {
    "h": 241.538,
    "s": 48.954,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49226,
    "c": 0.1776,
    "h": 278.8
  },
  "luminance": 0.10908
}

Semantic roles & 50–950 ramp

primary
#504DC2
secondary
#CDCF9C
accent
#D94FD5
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #504DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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