#504CD2#504CD2

#504CD2 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.4% C 0.200 H 277.8°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#504CD2
RGBrgb(80, 76, 210)
HSLhsl(242, 60%, 56%)
HSVhsv(242, 64%, 82%)
CMYKcmyk(61.9%, 63.8%, 0%, 17.6%)
CIE-LABlab(40.45, 41.24, -68.67)
CIE-LCHlch(40.45, 80.10, 300.98°)
OKLaboklab(50.37% 0.027 -0.1978)
OKLCHoklch(50.37% 0.2 277.8)
XYZxyz(17.5218, 11.5261, 62.2617)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CD2 #CED24C
analogous
#4C8BD2 #504CD2 #934CD2
triadic
#504CD2 #D2504C #4CD250
tetradic
#504CD2 #D24C8B #CED24C #4CD293
square
#504CD2 #D24C8B #CED24C #4CD293
split-complementary
#504CD2 #D2934C #8BD24C
monochromatic
#242183 #312DB4 #504CD2 #807DDE #B0AEEB

Accessibility & contrast

On white

6.35
#504CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#504CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CD2
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CD2#FFFFFF#000000##FFFFFF
##504CD21.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D6
Deuteranopia (green-blind)
#005ACF
Tritanopia (blue-blind)
#006E88
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #504cd2;
/* rgb */ color: rgb(80, 76, 210);
/* oklch */ color: oklch(50.4% 0.200 277.8);
Tailwind
colors: {
  custom: {
    50: '#8f7fe1',
    500: '#504cd2',
    950: '#000000',
  },
}
SCSS
$custom: #504cd2;
$custom-light: #8f7fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#504cd2",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 210
  },
  "hsl": {
    "h": 241.791,
    "s": 59.821,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50373,
    "c": 0.19966,
    "h": 277.8
  },
  "luminance": 0.11527
}

Semantic roles & 50–950 ramp

primary
#504CD2
secondary
#D7D9A1
accent
#E345DE
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #504CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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