#504E95#504E95

#504E95 is a mid, moderate blue. Relative luminance 0.093; OKLCH L 46.1% C 0.113 H 282.3°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#504E95
RGBrgb(80, 78, 149)
HSLhsl(242, 31%, 45%)
HSVhsv(242, 48%, 58%)
CMYKcmyk(46.3%, 47.7%, 0%, 41.6%)
CIE-LABlab(36.60, 20.26, -38.91)
CIE-LCHlch(36.60, 43.86, 297.51°)
OKLaboklab(46.14% 0.024 -0.1103)
OKLCHoklch(46.14% 0.113 282.3)
XYZxyz(11.4559, 9.3236, 29.6240)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504E95 #93954E
analogous
#4E7095 #504E95 #744E95
triadic
#504E95 #95504E #4E9550
tetradic
#504E95 #954E70 #93954E #4E9574
square
#504E95 #954E70 #93954E #4E9574
split-complementary
#504E95 #95744E #70954E
monochromatic
#252445 #3A396D #504E95 #6F6DB3 #9796C8

Accessibility & contrast

On white

7.33
#504E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#504E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504E95
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504E95#FFFFFF#000000##FFFFFF
##504E951.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315998
Deuteranopia (green-blind)
#2D5493
Tritanopia (blue-blind)
#395D6A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #504e95;
/* rgb */ color: rgb(80, 78, 149);
/* oklch */ color: oklch(46.1% 0.113 282.3);
Tailwind
colors: {
  custom: {
    50: '#857fb4',
    500: '#504e95',
    950: '#000000',
  },
}
SCSS
$custom: #504e95;
$custom-light: #857fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#504e95",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 149
  },
  "hsl": {
    "h": 241.69,
    "s": 31.278,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4614,
    "c": 0.11292,
    "h": 282.3
  },
  "luminance": 0.09324
}

Semantic roles & 50–950 ramp

primary
#504E95
secondary
#B3B48A
accent
#C760C5
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0B0A11
muted
#7C7C80

Preview Lab

Preview with #504E95

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

Preview Lab → · Contrast checker → · Palette generator →

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