#504DC6#504DC6

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

Color values

HEX#504DC6
RGBrgb(80, 77, 198)
HSLhsl(241, 51%, 54%)
HSVhsv(241, 61%, 78%)
CMYKcmyk(59.6%, 61.1%, 0%, 22.4%)
CIE-LABlab(39.73, 36.73, -62.91)
CIE-LCHlch(39.73, 72.85, 300.28°)
OKLaboklab(49.55% 0.0269 -0.1809)
OKLCHoklch(49.55% 0.183 278.5)
XYZxyz(16.1519, 11.0893, 54.7044)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DC6 #C3C64D
analogous
#4D87C6 #504DC6 #8D4DC6
triadic
#504DC6 #C6504D #4DC650
tetradic
#504DC6 #C64D87 #C3C64D #4DC68D
square
#504DC6 #C64D87 #C3C64D #4DC68D
split-complementary
#504DC6 #C68D4D #87C64D
monochromatic
#272574 #3734A2 #504DC6 #7E7BD5 #ABAAE4

Accessibility & contrast

On white

6.53
#504DC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#504DC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504DC6
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504DC6#FFFFFF#000000##FFFFFF
##504DC61.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CA
Deuteranopia (green-blind)
#0059C4
Tritanopia (blue-blind)
#006B82
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #504dc6;
/* rgb */ color: rgb(80, 77, 198);
/* oklch */ color: oklch(49.5% 0.183 278.5);
Tailwind
colors: {
  custom: {
    50: '#8d7fd8',
    500: '#504dc6',
    950: '#000000',
  },
}
SCSS
$custom: #504dc6;
$custom-light: #8d7fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#504dc6",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 198
  },
  "hsl": {
    "h": 241.488,
    "s": 51.489,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49548,
    "c": 0.18289,
    "h": 278.5
  },
  "luminance": 0.1109
}

Semantic roles & 50–950 ramp

primary
#504DC6
secondary
#D0D19E
accent
#DB4DD7
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #504DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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