U.S. stocks barely budged on Tuesday as consumer confidence sank in July, offsetting enthusiasm stirred by more robust earnings.

The benchmark S&P 500 index hovered near its 200-day moving average at 1,113. A close above that level would indicate market strength.

Economic data has raised concerns that the U.S. recovery has stalled while the latest earnings reports have sent more optimistic signals on the economy. On Monday, U.S. stocks rallied after an upbeat outlook from FedEx .

For companies, it seems growth hasn't ground to a halt, and that is very important for the stock market, said Marc Pado, U.S. market strategist at Cantor Fitzgerald & Co, in San Francisco.

But the balance of the market is in a bit of a pullback phase, and consumer confidence is weighing today, he said.

Consumer confidence fell in July to its lowest point since February, hurt by worries about the job market, according to a report from the Conference Board, a private research group.

But the Dow got a lift from DuPont & Co

, which shot up 3.7 percent to $40.44 after reporting its quarterly profit nearly tripled on strong sales in all of its businesses.

The Dow Jones industrial average <.DJI> gained 11.96 points, or 0.11 percent, to 10,537.39. The Standard & Poor's 500 Index <.SPX> shed 1.74 points, or 0.16 percent, to 1,113.27. The Nasdaq Composite Index <.IXIC> slipped 10.57 points, or 0.46 percent, to 2,285.86.

Companies sensitive to economic cycles ranked among the biggest decliners, including heavy equipment maker Caterpillar Inc , down 1.5 percent at $68.98.

On the Nasdaq, shares of Paccar Inc fell 3.8 percent to $45.21 despite stronger-than-expected quarterly results. Paccar makes big commercial trucks under brands that include Peterbilt and Kenworth.

In other earnings news, Cummings Inc , the engines and power-generation equipment maker, climbed 1.8 percent to $79.27 after reporting stronger-than-expected quarterly results and raising its annual forecast on strong demand overseas.

Some 41 percent of S&P 500 companies have reported earnings so far this period.

The S&P 500 hit a session high just above 1,120, around the midpoint between its 2007 historic high and a 12-year low hit in 2009. That retracement is seen by analysts as strong technical resistance.

(Reporting by Caroline Valetkevitch; Editing by Jan Paschal)