#504E97#504E97

#504E97 is a mid, moderate blue. Relative luminance 0.094; OKLCH L 46.3% C 0.116 H 282.1°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#504E97
RGBrgb(80, 78, 151)
HSLhsl(242, 32%, 45%)
HSVhsv(242, 48%, 59%)
CMYKcmyk(47%, 48.3%, 0%, 40.8%)
CIE-LABlab(36.72, 20.89, -39.92)
CIE-LCHlch(36.72, 45.06, 297.62°)
OKLaboklab(46.27% 0.0243 -0.1133)
OKLCHoklch(46.27% 0.116 282.1)
XYZxyz(11.6169, 9.3881, 30.4721)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504E97 #95974E
analogous
#4E7097 #504E97 #754E97
triadic
#504E97 #97504E #4E9750
tetradic
#504E97 #974E70 #95974E #4E9775
square
#504E97 #974E70 #95974E #4E9775
split-complementary
#504E97 #97754E #70974E
monochromatic
#252446 #3B396F #504E97 #706EB4 #9896C9

Accessibility & contrast

On white

7.30
#504E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#504E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504E97
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504E97#FFFFFF#000000##FFFFFF
##504E971.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30599A
Deuteranopia (green-blind)
#2B5495
Tritanopia (blue-blind)
#385D6B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #504e97;
/* rgb */ color: rgb(80, 78, 151);
/* oklch */ color: oklch(46.3% 0.116 282.1);
Tailwind
colors: {
  custom: {
    50: '#857fb6',
    500: '#504e97',
    950: '#000000',
  },
}
SCSS
$custom: #504e97;
$custom-light: #857fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#504e97",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 241.644,
    "s": 31.878,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46271,
    "c": 0.11589,
    "h": 282.1
  },
  "luminance": 0.09389
}

Semantic roles & 50–950 ramp

primary
#504E97
secondary
#B4B68B
accent
#C860C5
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0B0A11
muted
#7C7C80

Preview Lab

Preview with #504E97

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

Preview Lab → · Contrast checker → · Palette generator →

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