Adam Armstrong finished a prolific season with a hat-trick as Blackburn beat Birmingham in an entertaining final-day encounter.
Kristian Pedersen put Blues ahead but goals from Armstrong and Ben Brereton had Blackburn in front at half-time.
Lukas Jutkiewicz nodded in an equaliser after the break only for Armstrong to restore the lead.
Harvey Elliott's superb finish and Armstrong's third, his 28th league goal of the season, added a late gloss to the scoreline.
Blackburn's win completed their first league double over Birmingham since 2000-01, as they finished 15th in the final Championship table.
Armstrong's hat-trick was his third of the season and his final goal saw him beat Jordan Rhodes' tally of 27 back in 2012-13.
Birmingham ended the campaign in 18th place, the fifth successive season they have finished in the bottom third of the table.
They recovered strongly, winning five of their 10 games under manager Lee Bowyer, who missed this match for personal reasons.