#504EB7#504EB7

#504EB7 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.5% C 0.161 H 279.4°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#504EB7
RGBrgb(80, 78, 183)
HSLhsl(241, 42%, 51%)
HSVhsv(241, 57%, 72%)
CMYKcmyk(56.3%, 57.4%, 0%, 28.2%)
CIE-LABlab(38.85, 31.21, -55.57)
CIE-LCHlch(38.85, 63.74, 299.32°)
OKLaboklab(48.55% 0.0263 -0.1593)
OKLCHoklch(48.55% 0.161 279.4)
XYZxyz(14.5772, 10.5722, 46.0631)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504EB7 #B5B74E
analogous
#4E80B7 #504EB7 #844EB7
triadic
#504EB7 #B7504E #4EB750
tetradic
#504EB7 #B74E80 #B5B74E #4EB784
square
#504EB7 #B74E80 #B5B74E #4EB784
split-complementary
#504EB7 #B7844E #80B74E
monochromatic
#292863 #3B3A8E #504EB7 #7B7AC9 #A6A5DA

Accessibility & contrast

On white

6.74
#504EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#504EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504EB7
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504EB7#FFFFFF#000000##FFFFFF
##504EB71.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#0057B5
Tritanopia (blue-blind)
#1A677B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #504eb7;
/* rgb */ color: rgb(80, 78, 183);
/* oklch */ color: oklch(48.5% 0.161 279.4);
Tailwind
colors: {
  custom: {
    50: '#8a7fcd',
    500: '#504eb7',
    950: '#000000',
  },
}
SCSS
$custom: #504eb7;
$custom-light: #8a7fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#504eb7",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 183
  },
  "hsl": {
    "h": 241.143,
    "s": 42.169,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48545,
    "c": 0.16147,
    "h": 279.4
  },
  "luminance": 0.10573
}

Semantic roles & 50–950 ramp

primary
#504EB7
secondary
#C7C899
accent
#D256D0
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0D0A14
muted
#7D7C82

Preview Lab

Preview with #504EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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