#504CB4#504CB4

#504CB4 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.0% C 0.160 H 280.2°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#504CB4
RGBrgb(80, 76, 180)
HSLhsl(242, 41%, 50%)
HSVhsv(242, 58%, 71%)
CMYKcmyk(55.6%, 57.8%, 0%, 29.4%)
CIE-LABlab(38.14, 31.49, -54.95)
CIE-LCHlch(38.14, 63.33, 299.81°)
OKLaboklab(47.95% 0.0284 -0.1575)
OKLCHoklch(47.95% 0.16 280.2)
XYZxyz(14.1284, 10.1687, 44.3894)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CB4 #B0B44C
analogous
#4C7CB4 #504CB4 #844CB4
triadic
#504CB4 #B4504C #4CB450
tetradic
#504CB4 #B44C7C #B0B44C #4CB484
square
#504CB4 #B44C7C #B0B44C #4CB484
split-complementary
#504CB4 #B4844C #7CB44C
monochromatic
#2A275E #3D3A89 #504CB4 #7A77C6 #A4A2D8

Accessibility & contrast

On white

6.92
#504CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#504CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504CB4
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CB4#FFFFFF#000000##FFFFFF
##504CB41.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#0056B2
Tritanopia (blue-blind)
#1F6478
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #504cb4;
/* rgb */ color: rgb(80, 76, 180);
/* oklch */ color: oklch(48.0% 0.160 280.2);
Tailwind
colors: {
  custom: {
    50: '#8a7ecb',
    500: '#504cb4',
    950: '#000000',
  },
}
SCSS
$custom: #504cb4;
$custom-light: #8a7ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#504cb4",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 180
  },
  "hsl": {
    "h": 242.308,
    "s": 40.945,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47953,
    "c": 0.16002,
    "h": 280.2
  },
  "luminance": 0.1017
}

Semantic roles & 50–950 ramp

primary
#504CB4
secondary
#C3C597
accent
#D157CC
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #504CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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