HBO’s “True Detective” opened Sunday night with a solid 2.3 million viewers, making it the premium cabler’s most-watched debut since “Boardwalk Empire” drew 4.8 million in 2010.

Among the shows that “True Detective” outperformed in its premiere are dramas “Game of Thrones” (2.22 million) and “The Newsroom” (2.14 million) and comedies “Veep” (1.38 million) and “Girls” (870,000).

A replay a couple of hours later brought in another million viewers, according to Nielsen, bringing Sunday night’s tally for “True Detective” to 3.3 million.

“True Detective,” starring Matthew McConaughey and Woody Harrelson, tells the story of two Louisiana homicide detectives’ hunt for a serial killer. The first season of the anthology series consists of eight episodes.

Also Sunday for HBO, “Girls” delivered a series-best 1.1 million viewers for its third-season premiere — 28% above the debuts for the previous two seasons (870,000 for both its premiere year and 2012).

A second episode of “Girls” followed at 10:30 p.m., drawing about 881,000 viewers.

HBO has already announced that “Girls” will be back next year for a fourth season. Sunday’s third-season premiere of the Lena Dunham comedy premiered on the same night that the show and star were respectively up for Golden Globes for television comedy and actress in a comedy — categories they won last year but not this time around.

Starting next week, gay-themed comedy “Looking” will be paired with “Girls.”