Chris Evans, Scarlett Johansson

Captain America: The Winter Soldier hung on to the top spot at the box office this weekend, but just barely.

The superhero flick earned $41.4 million in its second week, narrowly topping the animated sequel Rio 2, which took in $39 million in its debut, Box Office Mojo reports.

Quiz: Do you know these celebrities' real names?

Horror movie Oculus and Kevin Costner's Draft Day both had soft openings, landing at No. 3 and No. 4 with $12 million and $9.7 million, respectively. Divergent fell two spots to No. 5 with $7.5 million, just skirting past Noah, which dropped four spots to No. 6 after earning $7.4 million in its third week.

God's Not Dead closed out the weekend in seventh place with $5.5 million.

Rounding out the Top 10 were The Grand Budapest Hotel (No. 8, $4 million), Muppets Most Wanted (No. 9, $2.2 million) and Mr. Peabody & Sherman (No. 10, $1.8 million).