Khloe Kardashian (Jason Merritt/GETTY IMAGES)

Khloe Kardashian and Mario Lopez have been named co-hosts of  Fox’s singing competition “The X Factor” — the one that’s getting trounced by NBC’s ”The Voice.”

Fox finally made it official Tuesday — about three weeks after word got out.

“The worst kept secret in Hollywood is out,” show creator Simon Cowell said in Tuesday’s announcement, botching that old gag.

The second edition of the show has been on the air since September, host-less, -- unless you count the WWE-sound-alike voiceover guy who’s been shepherding viewers through the auditions and boot camp rounds.

“Hi loves. I’m sure you’ve been hearing the rumors and I’m SO excited that I can finally confirm the news — I am joining The X Factor as co-host with Mario Lopez!!!!” Kardashian wrote Tuesday evening on her official Web site.

 “I’m a huge fan of the show so I literally fell over in my chair when I heard that I was being considered for the role,” she added.

 Lopez went with the more traditional, “I’m very excited to be joining ‘The X Factor’ team. I love the show and I’ve been a big fan of Simon Cowell and the judges for a long time.”

Mario Lopez (Matt Sayles/MATT SAYLES/INVISION/AP)

 When the show fell far short of that prediction, he replaced Abdul and Scherzinger with the much younger Britney Spears and Demi Lovato for this, its second season — resulting in even fewer viewers.

 So now it’s up to Kardashian and Lopez to bring ‘em in.

 Khloe is a newcomer to show hosting, but Lopez has experience to spare, having hosted “Pet Star” and ‘Randy Jackson Presents America’s Best Dance Crew.”

He also got rave reviews for his romancing of professional dance partner Karina Smirnoff on “Dancing with the Stars,” has appeared on “Hollywood Squares,” and worked the red carpet for “Extra.” The versatile Lopez is also an accomplished actor, specializing in playing doctors (Dr. Mike Manoui on “Nip/Tuck,” Dr. Christian Ramirez “The Bold and the Beautiful”), cops (Police Officer Bobby Cruz on ”Pacific Blue”) and, of course, Bayside High School’s star quarterback (A.C. Slater on “Saved by the Bell”).

 That’s not to say Kardashian has no TV experience. She’s a veteran — it’s just that she has focused exclusively on the role of “herself” and let the writers, cameramen, and editors do all the heavy lifting on “Keeping Up with the Kardashians,” “Khloe & Lamar,” “Kourtney & Kim Take New York,”  “Kourtney & Kim Take Miami” — though she did actually compete in one season of “The Apprentice.”

Kardashian and Lopez worked together, earlier this year, when Lopezasppeared in an infomercial for Khloe, Kim, and Kourtney’s “Perfect Skin” skin-care system.

Jones set the X-hosting bar very high in his one season on the show. In addition to being very tall, and looking wonderful in a suit, Jones was known for his perspicacious observations during each episode. Who can forget the time, after Lenny Kravitz performed, when Jones proclaimed, “Handsome man!”