Zack Greinke challenged baseball’s hottest hitter. The right-hander won the battle with Troy Tulowitzki and the Dodgers went on to win the game.

Greinke pitched eight solid innings, Juan Uribe hit the go-ahead single in the ninth inning and L.A. beat the Colorado Rockies 3-2 Thursday night.

Uribe finished with three of the Dodgers’ six hits. The Dodgers moved into first place in the NL West, a half-game ahead of San Francisco, which lost to St. Louis on Thursday.

“It feels good where we’re at, and it’s where we want to be,” manager Don Mattingly said.

Greinke (11-4) got the win despite giving up the lead in the eighth inning. His teammates rallied in the ninth off reliever LaTroy Hawkins to help Greinke tie for the major league lead in victories.

“Anytime you can give up two runs at this park is special,” first baseman Adrian Gonzalez said.

Kenley Jansen worked the bottom of the inning to get his NL best 26th save in 29 chances.

Justin Morneau and DJ LeMahieu had two hits apiece for the Rockies, who have lost four straight and 15 of 17 to move within a half-game of last place in the NL West.