San Jose came into the contest having lost nine of its last 10 games.
Logan Couture and T.J. Galiardi scored in regulation for the Sharks. Niemi had 25 saves.
Varlamov notched 39 saves for the Avalanche, who lost their third game in a row.
Chuck Kobasew and Mark Olver scored in regulation for Colorado. Olver's backhand goal at 16:44 of the third period knotted the score 2-2.
Millions of Getty images now available for free via embed tool
NBC reportedly holds celebs hostage to Jimmy Fallon's show