Quarterback prospect Josh Allen is on an apology tour Thursday morning after old tweets with racially indecent remarks surfaced online mere hours before the NFL draft.

Allen, who was expected to be a top choice in the draft, called the tweets “young and dumb” in an apology to ESPN’s Stephen A. Smith. Yahoo Sports first identified the messages, which refer to rap lyrics and were posted between June 2012 and June 2013. They have since been deleted from Allen’s account.

He also responded to a question that looks like was asked of him on AskFM in 2013, saying “If it ain’t white, it ain’t right!” an apparent reference to a line from the popular television sitcom “Modern Family.”

“He was tremendously contrite. He was apologetic,” Smith said on his “First Take” talk show Thursday morning, recounting a late-night phone conversation with Allen. “He recognized that it was irresponsible for him to do the things that he did.”

ESPN’s Adam Schefter said two sources floated the theory Thursday morning that another team may have leaked those tweets to tarnish Allen’s stock and make him available later in the first round.

Allen has yet to comment on the tweets, aside from acknowledging their authenticity.

More on the NFL draft from The Post: