UK inflation as measured by the Consumer Prices Index rose to 2.8% in February from 2.7%, thanks in part to rising energy prices, according to the Office for National Statistics (ONS).
Other upward price pressures came from recreational goods, such as cameras and computer games, the ONS said.
The Retail Prices Index (RPI) measure fell to 3.2% in February, from 3.3% in January.
The Bank of England's inflation target for the CPI is 2%.
The ONS said the largest upward contributions to the change in the CPI measure of inflation came from domestic fuel bill increases, which had been expected, as well as prices for cameras and games, where competition, which had been fierce, has abated.