Sofia Vergara on the set of “Modern Family” on Aug. 7BroadImage

Why so serious, Sofia?

Sofia Vergara looked almost unrecognizable on the set of “Modern Family” Thursday. The Colombian actress, 42, didn’t look too thrilled about the makeunder, either.

Instead of sexy heels and a hip-hugging dress, Vergara was dressed in a shabby T-shirt, sweatpants and Crocs. Her lipstick was smeared around her lips, a look reminiscent of the Joker character in “The Dark Night,” and she wore a sweatshirt tied around her waist.

E! News reports that details of the gritty scene, for the show’s upcoming sixth season, are being kept under wraps.

“Modern Family” returns Sept. 24 at 9 p.m. on ABC.