#504CC1#504CC1

#504CC1 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 49.0% C 0.178 H 279.1°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#504CC1
RGBrgb(80, 76, 193)
HSLhsl(242, 49%, 53%)
HSVhsv(242, 61%, 76%)
CMYKcmyk(58.5%, 60.6%, 0%, 24.3%)
CIE-LABlab(39.11, 35.71, -61.00)
CIE-LCHlch(39.11, 70.69, 300.35°)
OKLaboklab(48.97% 0.0281 -0.1753)
OKLCHoklch(48.97% 0.178 279.1)
XYZxyz(15.5153, 10.7235, 51.6940)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CC1 #BDC14C
analogous
#4C83C1 #504CC1 #8A4CC1
triadic
#504CC1 #C1504C #4CC150
tetradic
#504CC1 #C14C83 #BDC14C #4CC18A
square
#504CC1 #C14C83 #BDC14C #4CC18A
split-complementary
#504CC1 #C18A4C #83C14C
monochromatic
#28266D #39359A #504CC1 #7C79D1 #A9A7E0

Accessibility & contrast

On white

6.68
#504CC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#504CC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CC1
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CC1#FFFFFF#000000##FFFFFF
##504CC11.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C5
Deuteranopia (green-blind)
#0057BF
Tritanopia (blue-blind)
#00687F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #504cc1;
/* rgb */ color: rgb(80, 76, 193);
/* oklch */ color: oklch(49.0% 0.178 279.1);
Tailwind
colors: {
  custom: {
    50: '#8c7ed5',
    500: '#504cc1',
    950: '#000000',
  },
}
SCSS
$custom: #504cc1;
$custom-light: #8c7ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#504cc1",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 193
  },
  "hsl": {
    "h": 242.051,
    "s": 48.548,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48972,
    "c": 0.17755,
    "h": 279.1
  },
  "luminance": 0.10725
}

Semantic roles & 50–950 ramp

primary
#504CC1
secondary
#CCCE9B
accent
#D850D3
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #504CC1

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

Preview Lab → · Contrast checker → · Palette generator →

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