PASADENA, California: Jennifer Lopez and America Ferrera agree: Television is embracing diversity, finally.

“It’s been coming for many years,” Lopez, promoting her new NBC police drama “Shades of Blue,” told a TV critics’ meeting Wednesday. “There’s no denying what society is right now. It’s not just race, it’s gender, it’s all kind of diversity being showcased.”

She cited the ethnically diverse cast of producer Shonda Rhimes’ “Grey’s Anatomy,” the ABC drama that debuted in 2005, as the “turning point.”

“There’s no getting away from it anymore,” Lopez said.

Ferrera, who stars in NBC’s freshman comedy “Superstore,” lauded the inclusiveness of her show in particular and NBC in general.

“This is the first time I’ve been offered a role that wasn’t written” for a Latino, the former “Ugly Betty” star said at a separate Q&A session with reporters.

She was struck by the fact that the pilot script for “Superstore” didn’t specify races for the series’ other characters as well, she said. Her co-stars include Nico Santos, a native of the Philippines, and Colton Dunn, who is African-American.

Ferrera also praised NBC’s new trio of Latina-led shows — hers, Lopez’s and Eva Longoria’s “Telenovela” — as “ground-breaking and history.”

Perhaps it will encourage other broadcasters to “enrich their storytelling by reflecting the world we live,” she said.

Her castmate, Canadian native Mark McKinney, couldn’t resist adding a punchline. He said he applauded NBC and producers for “taking the great step of casting two Canadians,” indicating co-star Lauren Ash.

Speaking to reporters later, Longoria said diversity needs to extend to those in decision-making jobs.

“There’s a lot to be done to have more diversity in front of the camera, but it starts behind the camera.”