Sofia had earlier looked stunning as she posed on the red carpet in the aquamarine sequinned outfit, which hugged her figure and highlighted her tiny waist.

The stunning actress teamed the outfit, which featured a cut-out back panel, with silver jewellery and left her brown hair loose in waves around her shoulders.

And following Modern Family's victories at the ceremony - it also took home Outstanding Supporting Comedy Actor for Eric Stonestreet, Julie Bowen for Supporting Actress in a Comedyand Outstanding Comedy Director award for Steven Levitan - Sofia marked the show's success at the FOX Broadcasting Company, Twentieth Century FOX Television and FX 2012 Post Emmy party at Soleto Trattoria in LA.

That's better! Earlier on the red carpet, there was no hint of the upcoming fashion mishap as the 40-year-old actress posed for photographers

The actress also ensured she kept her fans updated with her movements at the party, regularly tweeting pictures from inside the event.

Sofia, who lost out on the Supporting Actress award to co-star Julie, certainly appeared to be letting her hair down at the event, even indulging in a spot of crowd surfing as the free-flowing alcohol took hold.

She tweeted a picture of herself crowd surfing with the caption: 'This is how the Colombians partyyy at the Emmys!!'

'This is how Colombians party!' Sofia certainly appeared to be letting her hair down as she partied at the FOX Emmy afterparty

What a rockstar! Sofia even indulged in some crowd-surfing, much to the delight of the crowd inside the Soleto Trattoria

Sofia had earlier written: 'I party like a mermaid!' alongside a picture of herself cuddling up to fiancé Nick Loeb.

The actress even invited 19 family members to enjoy the festivities alongside her at the afterparty.

She told Extra TV: 'I brought a lot of people from my family. They wanted to come here with me. There are 19 people, and they love coming here with me, so we have a great time.'

Family time: Sofia was joined for the Emmys by 19 of her closest friends and family, including her mother Gloria (centre)

Not a sore loser: Despite losing out on the Emmy to co-star Julie Bowen, Sofia put her loss behind her to party in style following the ceremony