#504EB3#504EB3

#504EB3 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.2% C 0.156 H 279.7°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#504EB3
RGBrgb(80, 78, 179)
HSLhsl(241, 40%, 50%)
HSVhsv(241, 56%, 70%)
CMYKcmyk(55.3%, 56.4%, 0%, 29.8%)
CIE-LABlab(38.56, 29.91, -53.68)
CIE-LCHlch(38.56, 61.45, 299.13°)
OKLaboklab(48.24% 0.0263 -0.1537)
OKLCHoklch(48.24% 0.156 279.7)
XYZxyz(14.1668, 10.4080, 43.9015)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504EB3 #B1B34E
analogous
#4E7EB3 #504EB3 #824EB3
triadic
#504EB3 #B3504E #4EB350
tetradic
#504EB3 #B34E7E #B1B34E #4EB382
square
#504EB3 #B34E7E #B1B34E #4EB382
split-complementary
#504EB3 #B3824E #7EB34E
monochromatic
#29285E #3C3B89 #504EB3 #7A79C5 #A5A4D8

Accessibility & contrast

On white

6.81
#504EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#504EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504EB3
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504EB3#FFFFFF#000000##FFFFFF
##504EB31.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB6
Deuteranopia (green-blind)
#0057B1
Tritanopia (blue-blind)
#206579
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #504eb3;
/* rgb */ color: rgb(80, 78, 179);
/* oklch */ color: oklch(48.2% 0.156 279.7);
Tailwind
colors: {
  custom: {
    50: '#897fca',
    500: '#504eb3',
    950: '#000000',
  },
}
SCSS
$custom: #504eb3;
$custom-light: #897fca;
$custom-dark: #000000;
JSON
{
  "hex": "#504eb3",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 179
  },
  "hsl": {
    "h": 241.188,
    "s": 39.921,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48243,
    "c": 0.15597,
    "h": 279.7
  },
  "luminance": 0.10409
}

Semantic roles & 50–950 ramp

primary
#504EB3
secondary
#C4C598
accent
#D058CD
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #504EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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