Stocks rose on Tuesday as Netflix led a rally in tech-related names after news that it would hike its monthly membership prices.

The Dow Jones Industrial Average rose 155.75 points to 24,065.59 as Microsoft and UnitedHealth outperformed. The gained 1.07 percent to close at 2,610.30 as the tech sector climbed 1.5 percent. Tuesday was also the first time since December that the S&P 500 closed above 2,600, a key level watched by traders. The Nasdaq Composite outperformed, rising 1.7 percent to 7,023.83.

Stocks pared some of their gains after U.K. lawmakers voted against the Brexit plans of U.K. Prime Minister Theresa May, worrying investors that global economic growth could take a hit as a result.

Shares of Netflix jumped 6.5 percent after a report said the company it would hike prices to its monthly memberships by 13 to 18 percent. This would be Netflix's biggest price hike since it launched its streaming service more than a decade ago.

"Investors will likely view this above-Street estimate increase quite positively, bolstering confidence in subscriber trends, pace of revenue growth and ability to achieve guidance for margin gains," said Doug Mitchelson, an analyst at Credit Suisse.

Facebook, Amazon, Apple and Alphabet rose more than 2 percent each.