#504F8A#504F8A

#504F8A is a mid, moderate blue. Relative luminance 0.091; OKLCH L 45.7% C 0.095 H 282.7°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#504F8A
RGBrgb(80, 79, 138)
HSLhsl(241, 27%, 43%)
HSVhsv(241, 43%, 54%)
CMYKcmyk(42%, 42.8%, 0%, 45.9%)
CIE-LABlab(36.24, 16.19, -32.79)
CIE-LCHlch(36.24, 36.57, 296.28°)
OKLaboklab(45.66% 0.0209 -0.0924)
OKLCHoklch(45.66% 0.095 282.7)
XYZxyz(10.6904, 9.1320, 25.2392)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504F8A #898A4F
analogous
#4F6B8A #504F8A #6E4F8A
triadic
#504F8A #8A504F #4F8A50
tetradic
#504F8A #8A4F6B #898A4F #4F8A6E
square
#504F8A #8A4F6B #898A4F #4F8A6E
split-complementary
#504F8A #8A6E4F #6B8A4F
monochromatic
#23223C #393963 #504F8A #6D6CAB #9393C1

Accessibility & contrast

On white

7.43
#504F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#504F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504F8A
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504F8A#FFFFFF#000000##FFFFFF
##504F8A1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A578C
Deuteranopia (green-blind)
#375389
Tritanopia (blue-blind)
#3F5B66
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #504f8a;
/* rgb */ color: rgb(80, 79, 138);
/* oklch */ color: oklch(45.7% 0.095 282.7);
Tailwind
colors: {
  custom: {
    50: '#8480ac',
    500: '#504f8a',
    950: '#000000',
  },
}
SCSS
$custom: #504f8a;
$custom-light: #8480ac;
$custom-dark: #000000;
JSON
{
  "hex": "#504f8a",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 138
  },
  "hsl": {
    "h": 241.017,
    "s": 27.189,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45659,
    "c": 0.09478,
    "h": 282.7
  },
  "luminance": 0.09132
}

Semantic roles & 50–950 ramp

primary
#504F8A
secondary
#ADAE87
accent
#C464C2
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0A10
muted
#7C7C7F

Preview Lab

Preview with #504F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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