#504CC2#504CC2

#504CC2 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 49.1% C 0.179 H 279.0°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#504CC2
RGBrgb(80, 76, 194)
HSLhsl(242, 49%, 53%)
HSVhsv(242, 61%, 76%)
CMYKcmyk(58.8%, 60.8%, 0%, 23.9%)
CIE-LABlab(39.19, 36.04, -61.46)
CIE-LCHlch(39.19, 71.25, 300.39°)
OKLaboklab(49.05% 0.0281 -0.1766)
OKLCHoklch(49.05% 0.179 279)
XYZxyz(15.6272, 10.7683, 52.2835)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CC2 #BEC24C
analogous
#4C83C2 #504CC2 #8B4CC2
triadic
#504CC2 #C2504C #4CC250
tetradic
#504CC2 #C24C83 #BEC24C #4CC28B
square
#504CC2 #C24C83 #BEC24C #4CC28B
split-complementary
#504CC2 #C28B4C #83C24C
monochromatic
#28266E #39359C #504CC2 #7D7AD2 #A9A7E1

Accessibility & contrast

On white

6.66
#504CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #504CC2
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CC2#FFFFFF#000000##FFFFFF
##504CC21.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#0058C0
Tritanopia (blue-blind)
#006980
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #504cc2;
/* rgb */ color: rgb(80, 76, 194);
/* oklch */ color: oklch(49.1% 0.179 279.0);
Tailwind
colors: {
  custom: {
    50: '#8c7ed5',
    500: '#504cc2',
    950: '#000000',
  },
}
SCSS
$custom: #504cc2;
$custom-light: #8c7ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#504cc2",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 194
  },
  "hsl": {
    "h": 242.034,
    "s": 49.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49052,
    "c": 0.17886,
    "h": 279
  },
  "luminance": 0.10769
}

Semantic roles & 50–950 ramp

primary
#504CC2
secondary
#CDCE9B
accent
#D94FD4
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #504CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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