#504CD4#504CD4

#504CD4 is a mid, highly saturated blue. Relative luminance 0.116; OKLCH L 50.5% C 0.202 H 277.6°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#504CD4
RGBrgb(80, 76, 212)
HSLhsl(242, 61%, 56%)
HSVhsv(242, 64%, 83%)
CMYKcmyk(62.3%, 64.2%, 0%, 16.9%)
CIE-LABlab(40.62, 41.88, -69.55)
CIE-LCHlch(40.62, 81.19, 301.05°)
OKLaboklab(50.54% 0.0269 -0.2004)
OKLCHoklch(50.54% 0.202 277.6)
XYZxyz(17.7725, 11.6264, 63.5821)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CD4 #D0D44C
analogous
#4C8CD4 #504CD4 #944CD4
triadic
#504CD4 #D4504C #4CD450
tetradic
#504CD4 #D44C8C #D0D44C #4CD494
square
#504CD4 #D44C8C #D0D44C #4CD494
split-complementary
#504CD4 #D4944C #8CD44C
monochromatic
#232086 #302CB7 #504CD4 #807DE0 #B0AFEC

Accessibility & contrast

On white

6.31
#504CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#504CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CD4
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CD4#FFFFFF#000000##FFFFFF
##504CD41.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D8
Deuteranopia (green-blind)
#005AD1
Tritanopia (blue-blind)
#006F89
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #504cd4;
/* rgb */ color: rgb(80, 76, 212);
/* oklch */ color: oklch(50.5% 0.202 277.6);
Tailwind
colors: {
  custom: {
    50: '#8f7fe2',
    500: '#504cd4',
    950: '#000000',
  },
}
SCSS
$custom: #504cd4;
$custom-light: #8f7fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#504cd4",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 212
  },
  "hsl": {
    "h": 241.765,
    "s": 61.261,
    "l": 56.471
  },
  "oklch": {
    "l": 0.50543,
    "c": 0.20221,
    "h": 277.6
  },
  "luminance": 0.11628
}

Semantic roles & 50–950 ramp

primary
#504CD4
secondary
#D8DAA2
accent
#E443E0
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A15
muted
#7E7C84

Preview Lab

Preview with #504CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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