Colorado Rockies’ Brendan Rodgers reacts after striking out against Milwaukee Brewers starting pitcher Colin Rea to end the third inning of a baseball game Wednesday, July 3, 2024, in Denver. (AP Photo/David Zalubowski)

The Rockies’ offense remains a Rubik’s Cube. Just when the Rockies start to figure it out, things don’t line up.

Case in point: their 3-0 loss to the Brewers Wednesday night at Coors Field in front of an announced crowd of 34,177.

Veteran Milwaukee right-hander Colin Rea confounded Colorado for seven innings, allowing six hits and never giving up back-to-back hits. He struck out four and walked none. Colorado’s only extra-base hit off Rae was a one-out double by catcher Elias Diaz in the fourth.

The Rockies were shut out for the ninth time, the third time at home.

Colorado’s best chance for a rally came in the eighth against right-hander Jakob Junis. Charlie Blackmon reached on a two-out walk and Brendan Rodgers dumped a single into shallow right. Up stepped Ryan McMahon, who ripped a 0-1 changeup to the left field only to see Christian Yelich track it down for the final out.

Center fielder Brenton Doyle (2 for 4) blasted a one-out double into the right-center gap off Junis in the ninth, but Doyle was stranded. Junis struck out Michael Toglia looking and closed out the game by fanning Nolan Jones on a 3-2 breaking ball.

Colorado starter Dakota Hudson did a decent job playing traffic cop and avoided any blowout innings, but with Colorado’s offense stuck in neutral, he departed with a 3-0 deficit.

Yelich, who was voted in as an All-Star Game starter earlier in the day, lined a 446-foot homer off the second-deck facade in right field to give the Brewers a 1-0 lead in the first.

The Brewers made it 2-0 in the second, combining a two-out walk by Sal Frelick, who advanced to second on Hudson’s wild pitch, with Jake Bauers’ single to right.

Hudson escaped a major jam in the third by striking out Willy Adames and inducing Garrett Mitchell to ground out to second.

The fifth was messy — for both teams.

Milwaukee loaded the bases on singles by Brice Turang and William Contreras and a walk by Yelich. Hudson struck out Adames for the third time — the second time looking — and Adames went off on home plate umpire Mark Ripperger.