HARTFORD — UConn stretched its "knowing-how-to-win" talent to the limit, but this time could not pull it off.

After blowing a 13-point lead, shooting abysmally in the second half, the Huskies lost for the first time this season, 53-51, to Stanford before 11,140 at the XL Center on Wednesday night.

"We didn't have the toughness to win this game tonight," coach Kevin Ollie said, "mentally or physically. … Once they smelled they could play with us, they took it to us."

UConn (9-1), ranked 10th in the AP Poll — and they figure to tumble now — made just five of 31 shots from the floor in the second half, missing all 12 shots they took from behind the three-point line. The Huskies were leading the nation in three-point shooting coming into the game, and hit 6 of 10 in the first half.

Chasson Randle scored 22 points to lead Stanford. DeAndre Daniels scored 15 for UConn. Shabazz Napier, known for dramatic shots, put the Huskies back ahead twice in the final minutes, but missed three shots during the final 41 seconds, as UConn had numerous chances to tie or win the game.

"I wanted Shabazz to attack the basket," Ollie said, "we live with that because he has put us on his back a lot. But he settled for those long threes and they weren't going in, so you have to make adjustments. We didn't make that game-winning adjustment tonight."

The last time down the floor, Napier, who made a game-winning shot at the buzzer against Florida on Dec. 2, passed the ball to Omar Calhoun as the Huskies came down the floor one last time. Calhoun launched a deep three that was on line, but it hit the front of the rim.

"It was three on two," Napier said, "and I didn't want to force it. I just thought Omar had a better chance to make the shot. He was more open."

The Huskies had won 54 in a row against non-conference teams at home, dating back to a loss to Indiana in 2007. They had won 13 in a row against Pac-12 teams, and face another, in Seattle against Washington on Sunday.

Stanford (8-2) has not been in the NCAA Tournament since 2008, but this win over a ranked team figures to be a resume-building win.

UConn's formula of penetrating, and then kicking it out to the open shooter, had been working to perfection, even against zone defenses. But Stanford's zone is a bit different – because they have bigger players playing in. They were able to clog the middle just enough to keep the Huskies out of the paint, and then get back out to contest three-pointers to some degree.

"Did they miss some open looks? Absolutely," said Stanford coach Johnny Dawkins, "but that happens in our game, especially when you apply pressure. We sped them up on the three-point line."

UConn appeared to take control of the game with a 14-3 spurt to finish the half with a 10-point lead. The Huskies expanded it to 13 points with 16:42 to play in the game, but then everything changed. Stanford's zone defense was able to extend, where others' have not, to contest UConn's three-point attack in the second half, and the Huskies offense went stagnant.

They went more than six minutes without a basket, as the Cardinal took the lead with a 14-0 run. UConn missed 25 of its first 29 shots in the half, and Stanford, outrebounded in the first half, dominated the boards in the second.

The Huskies, down 52-49, forced a turnover with 2:41 to play, and got a big tip-in from Daniels to stop the momentum and, perhaps, set the stage for another dramatic finish.

UConn made a stop, and Ollie called timeout with 1:17 left to draw up a play. The Huskies couldn't convert, Shabazz Napier missing a three and the ball going back to Stanford with 29.9 seconds left. The Huskies began fouling to extend the game, and got it back twice more.

Josh Huestis missed the back end of a 1-and-1, and the Huskies played for the last shot. But Napier missed. UConn got still one more shot, when Huestis missed another free throw, but Calhoun missed at the buzzer.

Stanford stayed close with the Huskies through much of the first half. UConn held its own on the boards with its bigger opponents, however, and out-shot them. Stanford went ice cold from the floor, especially Dwight Powell, who made just 4 of 18 shots. UConn took its first lead, 14-13, when Napier lobbed an alley-oop pass to Daniels.

The Cardinal led by as much as four, 21-17, but Napier hit a three-pointer to stop the momentum and the Huskies surged ahead. When Ryan Boatright and Lasan Kromah scored on the fast-break in the Huskies last two possessions of the half, UConn opened a 38-28 lead, outscoring Stanford 14-3 over the final 4:50.

The Cardinal finished the half 11 for 36 from the floor.

"I can't even blame the [12-day] layoff," Ollie said, "because we played well in the first half. … We affected ourselves, we got in our own way tonight."

When Niels Giffey scored on the baseline, converting a nice pass from Boatright, the Huskies led 43-30. But Stanford hit a couple of threes to pull back within seven with 15:55 to play; UConn, which has been unable to put several teams away after building double-digit leads, had let a very dangerous opponent back in the game.

"And it finally bit us in the butt tonight," Daniels said.

That began a long run by Stanford, as the Huskies suddenly grew stagnant on offense, going scoreless for more than six minutes. When Randle scored, drew a foul and completed the three-point play, the Cardinal led 44-43 with 10:56 to go.

"I didn't run the team the right way," said Napier, who finished with 12 points, going 4-for-13 from the floor, "when we're up double digits, that's on me, because the ball is always in my hands."

The Huskies went more than six minutes in the second half without a basket, as the Cardinal took the lead with a 14-0 run. UConn was 5 for 31 in the half, and Stanford, outrebounded in the first half, dominated the boards in the second.