WASHINGTON — Higher gasoline costs pushed a measure of U.S. consumer prices up in June. But the overall trend in inflation stayed tame.

The Labor Department said Tuesday that the consumer price index increased 0.5 percent in June from May. Two-thirds of the increase came from a 6.3 percent jump in gas prices, the largest since February.

A customer dining at Washington’s Oceanaire restaurant noticed an unusual line at the bottom of his receipt: “Due to the rising costs of doing business in this location, including costs associated with higher minimum wage rates, a 3% surcharge has been added to your total bill.”