NBC said today that its Jennifer Lopez-Ray Liotta police drama Shades of Blue will turn in its badge after the upcoming third season. The series’ final run will begin at 10 PM Sunday, June 17.

“I have enjoyed producing and starring in this beautifully complicated world and playing such an empowering yet flawed character – a woman, a detective but, first and foremost, a mother,” Lopez said in a statement. “Now looking at it with a little distance, playing Harlee strengthened me and helped me grow into a more self-assured woman.”

NBC

The series stars Lopez as Harlee Santos, a charismatic single mother and resourceful detective at the heart of a tight-knit crew of Brooklyn detectives. It’s run by enigmatic Lt. Matt Wozniak (Liotta), who often leads the team to step outside the limitations of the law in order to effectively protect their precinct and their own. Drea de Matteo, Dayo Okeniyi, Vincent Laresca, Hampton Fluker and Sarah Jeffery co-star on the series, and Nick Wechsler recurs. Bruce Magill also is set to guest star in the 10-episode Season 3.

Shades of Blue averaged a 1.4 rating in adults 18-49 and 7 million viewers in Live plus seven-day last summer, according to Nielsen Media Research. The series won its time slot over ABC, CBS and NBC in every key demographic – adults, men and women 18-34, 18-49 and 25-54, the network said.

NBC

NBC said the Season 3 storyline “brings Lopez’s complex character to a fitting resolution.” The network continues its relationship with the producer-star next month with the Season 2 kickoff of her reality competition series World of Dance. She also has a slate of film and television projects and a residency in Las Vegas.

The series hails from Universal Television, Nuyorican Productions, EGTV, Ryan Seacrest Productions and Jack Orman Productions. Showrunner Jack Orman exec produces alongside Lopez, Elaine Goldsmith-Thomas, Benny Medina, Ryan Seacrest and Nina Wass.

“It’s crazy how some parts permeate your soul and change you forever, and for that I am grateful,” Lopez added about Shades of Blue. “We crafted a poetic three-season arc on how her journey ends, which is true redemption. The way only Harlee could have done it – the hard way, the road less traveled. I thank NBC and all the talented actors, writers, crew and producers for going on this journey with us.”

Said Lisa Katz, Co-President of Scripted Programming at NBC Entertainment: “We are very proud that this remarkable series attracted iconic stars like the incomparable Jennifer Lopez and Ray Liotta to broadcast television,” We are so grateful for all the hard work and dedication of Jack Orman and his incredible producers as well as the entire cast and crew.”

Added Pearlena Igbokwe, President of Universal Television: “This is one of our flagship shows and we’re excited to share the final chapter with viewers who will be on the edge of their seats discovering how Harlee’s story concludes. It has been a supreme pleasure to work with executive producers Jennifer Lopez, Jack Orman, Elaine Goldsmith-Thomas, Benny Medina, Ryan Seacrest and Nina Wass.”