#504698#504698

#504698 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.8% C 0.129 H 285.5°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#504698
RGBrgb(80, 70, 152)
HSLhsl(247, 37%, 44%)
HSVhsv(247, 54%, 60%)
CMYKcmyk(47.4%, 53.9%, 0%, 40.4%)
CIE-LABlab(34.71, 26.31, -43.76)
CIE-LCHlch(34.71, 51.06, 301.02°)
OKLaboklab(44.78% 0.0345 -0.1246)
OKLCHoklch(44.78% 0.129 285.5)
XYZxyz(11.1643, 8.3523, 30.7236)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504698 #8E9846
analogous
#466598 #504698 #794698
triadic
#504698 #985046 #469850
tetradic
#504698 #984665 #8E9846 #469879
square
#504698 #984665 #8E9846 #469879
split-complementary
#504698 #987946 #659846
monochromatic
#241F44 #3A336E #504698 #6E64B7 #958ECB

Accessibility & contrast

On white

7.86
#504698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#504698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504698
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504698#FFFFFF#000000##FFFFFF
##5046981.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D549B
Deuteranopia (green-blind)
#1A4F96
Tritanopia (blue-blind)
#385868
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #504698;
/* rgb */ color: rgb(80, 70, 152);
/* oklch */ color: oklch(44.8% 0.129 285.5);
Tailwind
colors: {
  custom: {
    50: '#8679b7',
    500: '#504698',
    950: '#000000',
  },
}
SCSS
$custom: #504698;
$custom-light: #8679b7;
$custom-dark: #000000;
JSON
{
  "hex": "#504698",
  "rgb": {
    "r": 80,
    "g": 70,
    "b": 152
  },
  "hsl": {
    "h": 247.317,
    "s": 36.937,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44779,
    "c": 0.1293,
    "h": 285.5
  },
  "luminance": 0.08353
}

Semantic roles & 50–950 ramp

primary
#504698
secondary
#B0B684
accent
#CD5BBF
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0911
muted
#7D7B80

Preview Lab

Preview with #504698

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

Preview Lab → · Contrast checker → · Palette generator →

#504698 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva