DENVER (AP) -- The Milwaukee Brewers are on such a roll away from home not even playing imperfect baseball can stop them.
It wasn't the prettiest series win for the Brewers, who gave up 19 runs in the three games and allowed 15 hits on Sunday. But they found a way to win all weekend.
Now they head back to Milwaukee for a seven-game homestand, including four against Colorado starting Thursday.
''We play pretty good at home, too,'' Ramirez said. ''We've played pretty well on the road but you're always looking forward to go home. We just finished a great road trip and we're looking for a great homestand.''
Milwaukee swept the Rockies to finish 6-1 on a road trip that started in Arizona. The Brewers' 27-15 record and .643 winning percentage away from home is the best in the majors. Oakland (.622) and the Los Angeles Dodgers (.615) are the only other teams close to matching Milwaukee's success.
Kyle Lohse (9-2), who allowed three runs on seven hits in five innings to win consecutive starts for the first time in a month.
''It was a great road trip, certainly with the wins,'' manager Ron Roenicke said. ''We made some mistakes, there were plays we didn't make the right way. If we continue to win we have to play cleaner baseball.''
Colorado couldn't take advantage when Milwaukee was sloppy. The Rockies squandered several scoring opportunities and missed a chance to rally in the ninth when an overthrow led to the first out of the inning.
With Milwaukee leading 6-4, Corey Dickerson led off the bottom of the inning with a triple off the wall in right. The throw from the centerfielder Carlos Gomez got past Ramirez at third and Dickerson hesitated before heading down the baseline. He fell halfway to home, giving Ramirez enough time to throw him out at the plate.
''He was going to score on that play,'' Rockies manager Walt Weiss said. ''His legs gave out and he stumbled there between third and home.''
Wilin Rosario followed with his eighth homer of the season, but Francisco Rodriguez settled down to get his 25th save in 27 chances.
''I guess when you are good things go good,'' Ramirez said, ''If that guy doesn't fall, Rosario hits the homer and it's a tie ballgame.''
Rodriguez tweaked his left ankle on an earlier pitch to Dickerson but stayed in the game. Ryan Braun also rolled his ankle going back for a ball in right field but kept playing.
''It's not serious but I don't know about tomorrow,'' Roenicke said of Braun.
Rosario finished with four hits and had three RBIs for Colorado, which has lost six straight and fell to 6-14 in June.
After winning 16 of their first 23 home games the Rockies have lost 10 of 13 at Coors Field, where they have been swept twice in June.
Rockies rookie right-hander Tyler Matzek (1-2) was roughed up in the second before setting down 11 straight. He ran into trouble after retiring the first two batters of the fifth and the game tied at 3-3.
With runners on first and second, Jonathan Lucroy singled to right, scoring Rickie Weeks from second. Lucroy was caught in a rundown between first and second and Braun was able to score from third to make it 5-3.
''They're a good-hitting team,'' Matzek said. ''I just tried to pound the zone and just kept leaving it up.''
The Rockies made it a one-run game in the eighth on Drew Stubbs' RBI triple to right but Lyle Overbay led off the ninth with a pinch-hit home run to restore the two-run cushion.
Gomez extended his hitting streak to 18 games with a leadoff single in the second and Ramirez followed with a two-run homer, his 10th, to make it 2-0. Consecutive singles put runners on first and third for Milwaukee, and a double-play grounder by Lohse scored Khris Davis to make it 3-0.
The Rockies rallied to tie it with a run in the second and two in the third on Rosario's double to right-center.
NOTES: Sunday's win was Roenicke's 300th as a manager. ... Gomez has reached base in 35 consecutive games, the longest active streak in the majors. ... Rockies C Michael McKenry will leave the team Monday for a three-day bereavement leave. Jackson Williams will serve as Rosario's backup for the series against St. Louis. ... Rockies RHP Christian Bergman will have an MRI on his left hand Monday, head trainer Keith Dugger said. Bergman still has swelling from getting hit by a line drive on the base of the hand during Friday's start. ... The Rockies recalled RHP Rob Scahill from Triple-A.