#504CB3#504CB3

#504CB3 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.9% C 0.159 H 280.3°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#504CB3
RGBrgb(80, 76, 179)
HSLhsl(242, 40%, 50%)
HSVhsv(242, 58%, 70%)
CMYKcmyk(55.3%, 57.5%, 0%, 29.8%)
CIE-LABlab(38.07, 31.16, -54.47)
CIE-LCHlch(38.07, 62.76, 299.77°)
OKLaboklab(47.88% 0.0284 -0.1561)
OKLCHoklch(47.88% 0.159 280.3)
XYZxyz(14.0269, 10.1281, 43.8549)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504CB3 #AFB34C
analogous
#4C7CB3 #504CB3 #834CB3
triadic
#504CB3 #B3504C #4CB350
tetradic
#504CB3 #B34C7C #AFB34C #4CB383
square
#504CB3 #B34C7C #AFB34C #4CB383
split-complementary
#504CB3 #B3834C #7CB34C
monochromatic
#2A285D #3D3A88 #504CB3 #7A77C5 #A4A2D7

Accessibility & contrast

On white

6.94
#504CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #504CB3
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504CB3#FFFFFF#000000##FFFFFF
##504CB31.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#206478
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #504cb3;
/* rgb */ color: rgb(80, 76, 179);
/* oklch */ color: oklch(47.9% 0.159 280.3);
Tailwind
colors: {
  custom: {
    50: '#8a7eca',
    500: '#504cb3',
    950: '#000000',
  },
}
SCSS
$custom: #504cb3;
$custom-light: #8a7eca;
$custom-dark: #000000;
JSON
{
  "hex": "#504cb3",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 179
  },
  "hsl": {
    "h": 242.33,
    "s": 40.392,
    "l": 50
  },
  "oklch": {
    "l": 0.47877,
    "c": 0.15866,
    "h": 280.3
  },
  "luminance": 0.10129
}

Semantic roles & 50–950 ramp

primary
#504CB3
secondary
#C3C496
accent
#D058CC
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #504CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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