#504792#504792

#504792 is a dark, moderate blue. Relative luminance 0.083; OKLCH L 44.6% C 0.119 H 286.0°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#504792
RGBrgb(80, 71, 146)
HSLhsl(247, 35%, 43%)
HSVhsv(247, 51%, 57%)
CMYKcmyk(45.2%, 51.4%, 0%, 42.7%)
CIE-LABlab(34.57, 23.80, -40.32)
CIE-LCHlch(34.57, 46.82, 300.55°)
OKLaboklab(44.56% 0.0328 -0.1145)
OKLCHoklch(44.56% 0.119 286)
XYZxyz(10.7483, 8.2868, 28.2217)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504792 #899247
analogous
#476492 #504792 #754792
triadic
#504792 #925047 #479250
tetradic
#504792 #924764 #899247 #479275
square
#504792 #924764 #899247 #479275
split-complementary
#504792 #927547 #649247
monochromatic
#231F40 #393369 #504792 #6D63B3 #938CC7

Accessibility & contrast

On white

7.90
#504792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#504792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504792
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504792#FFFFFF#000000##FFFFFF
##5047921.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265395
Deuteranopia (green-blind)
#254F90
Tritanopia (blue-blind)
#3C5765
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #504792;
/* rgb */ color: rgb(80, 71, 146);
/* oklch */ color: oklch(44.6% 0.119 286.0);
Tailwind
colors: {
  custom: {
    50: '#857ab2',
    500: '#504792',
    950: '#000000',
  },
}
SCSS
$custom: #504792;
$custom-light: #857ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#504792",
  "rgb": {
    "r": 80,
    "g": 71,
    "b": 146
  },
  "hsl": {
    "h": 247.2,
    "s": 34.562,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44555,
    "c": 0.11912,
    "h": 286
  },
  "luminance": 0.08287
}

Semantic roles & 50–950 ramp

primary
#504792
secondary
#ADB382
accent
#CB5DBD
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0B0911
muted
#7C7B80

Preview Lab

Preview with #504792

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

Preview Lab → · Contrast checker → · Palette generator →

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