Samsung Electronics Co. is succeeding where other technology companies have tried and failed: closing the coolness gap with Apple Inc.

The deep-pocketed Korean company has used a combination of engineering prowess, manufacturing heft and marketing savvy to create smartphones that can rival the iPhone in both sales and appeal.

Samsung, the...