#504DC1#504DC1

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

Color values

HEX#504DC1
RGBrgb(80, 77, 193)
HSLhsl(242, 48%, 53%)
HSVhsv(242, 60%, 76%)
CMYKcmyk(58.5%, 60.1%, 0%, 24.3%)
CIE-LABlab(39.35, 35.10, -60.62)
CIE-LCHlch(39.35, 70.05, 300.07°)
OKLaboklab(49.15% 0.0271 -0.1742)
OKLCHoklch(49.15% 0.176 278.9)
XYZxyz(15.5847, 10.8624, 51.7171)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504DC1 #BEC14D
analogous
#4D84C1 #504DC1 #8A4DC1
triadic
#504DC1 #C1504D #4DC150
tetradic
#504DC1 #C14D84 #BEC14D #4DC18A
square
#504DC1 #C14D84 #BEC14D #4DC18A
split-complementary
#504DC1 #C18A4D #84C14D
monochromatic
#28266D #39369B #504DC1 #7D7AD1 #A9A8E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##504DC1#FFFFFF#000000##FFFFFF
##504DC11.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)
#0061C5
Deuteranopia (green-blind)
#0058BF
Tritanopia (blue-blind)
#00697F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #504dc1;
/* rgb */ color: rgb(80, 77, 193);
/* oklch */ color: oklch(49.1% 0.176 278.9);
Tailwind
colors: {
  custom: {
    50: '#8c7fd5',
    500: '#504dc1',
    950: '#000000',
  },
}
SCSS
$custom: #504dc1;
$custom-light: #8c7fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#504dc1",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 193
  },
  "hsl": {
    "h": 241.552,
    "s": 48.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49146,
    "c": 0.17627,
    "h": 278.9
  },
  "luminance": 0.10863
}

Semantic roles & 50–950 ramp

primary
#504DC1
secondary
#CDCE9C
accent
#D850D4
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #504DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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