When Amazon.com Inc. disclosed its workers’ median annual salary of $28,446 last week, the predominantly blue-collar nature of its workforce became clear.

The figure puts Amazon on par with chocolate manufacturer Hershey Co., slightly above retailer Home Depot Inc.—and miles below the $240,430 median annual compensation at Facebook, according to the companies’ latest proxy statements.

Amazon...