Croatia's two other goals came from winger Nikola Vlašić's low shot from close range in the 17th minute and Ivan Perišić's flicked header in the 77th.
Vlašić's took two touches for his goal and fired a low shot past Scotland goalkeeper David Marshall. It was Croatia's first real attack of the match after Scotland dominated the opening stages.
It was poor defending by wingback Stephen O'Donnell, who let Perišić jump above him unchallenged. Scotland sat back on occasions after the goal, inviting Croatia to push forward in dangerous positions.
Callum McGregor equalized for Scotland just before halftime, drilling the ball from just outside the penalty area into the left corner. Scotland's first goal of the tournament electrified the atmosphere at Hampden Park, with the Tartan Army jumping and hugging in the stands.
Scotland had pressed down the flanks with two crosses into the box, and Croatia only half-cleared the ball before it fell to McGregor.
But it wasn't enough for Scotland, which exit the tournament in last place in the group with only one point.