#504EB9#504EB9

#504EB9 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.7% C 0.164 H 279.2°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#504EB9
RGBrgb(80, 78, 185)
HSLhsl(241, 43%, 52%)
HSVhsv(241, 58%, 73%)
CMYKcmyk(56.8%, 57.8%, 0%, 27.5%)
CIE-LABlab(38.99, 31.87, -56.51)
CIE-LCHlch(38.99, 64.88, 299.42°)
OKLaboklab(48.7% 0.0263 -0.1621)
OKLCHoklch(48.7% 0.164 279.2)
XYZxyz(14.7868, 10.6560, 47.1672)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504EB9 #B7B94E
analogous
#4E82B9 #504EB9 #864EB9
triadic
#504EB9 #B9504E #4EB950
tetradic
#504EB9 #B94E82 #B7B94E #4EB986
square
#504EB9 #B94E82 #B7B94E #4EB986
split-complementary
#504EB9 #B9864E #82B94E
monochromatic
#292865 #3B3991 #504EB9 #7B7ACA #A7A6DC

Accessibility & contrast

On white

6.71
#504EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#504EB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #504EB9
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504EB9#FFFFFF#000000##FFFFFF
##504EB91.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BD
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#16677C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #504eb9;
/* rgb */ color: rgb(80, 78, 185);
/* oklch */ color: oklch(48.7% 0.164 279.2);
Tailwind
colors: {
  custom: {
    50: '#8a7fcf',
    500: '#504eb9',
    950: '#000000',
  },
}
SCSS
$custom: #504eb9;
$custom-light: #8a7fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#504eb9",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 185
  },
  "hsl": {
    "h": 241.121,
    "s": 43.32,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48698,
    "c": 0.1642,
    "h": 279.2
  },
  "luminance": 0.10657
}

Semantic roles & 50–950 ramp

primary
#504EB9
secondary
#C8C99A
accent
#D355D1
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #504EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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