It’s the mother of all insults. The Miss America and Miss World pageants ban either some or all moms from their competitions — but a New Yorker with a 6-year-old boy hopes to change that. Danielle Hazel, along with her famous women’s rights lawyer, Gloria Allred, revealed Monday that she has filed a discrimination complaint against the pageants with the city’s Commission on Human Rights.

“Being pregnant or being a parent is not a crime,” Allred said. The legal challenge from Hazel, a 25-year-old mom from Brooklyn, says the Miss America pageant only allows female contestants with “no legal dependents,” while Miss World participants must be “unmarried, have no children, and are not pregnant.” Stuart Moskovitz, a lawyer for the Miss America pageant, insisted to The Post on Monday, “There is no ban on mothers” — only on those with legal custodianship of their children.

“The only ban is where it’s necessary to protect the welfare of the child,” Moskovitz said, claiming that Miss America works “365 days a year” and is busier than the president of the United States. So unlike the US military, where single moms are allowed to serve and deploy as long as they have a “ family care plan ,” the grueling Miss America pageant does not allow for such accommodation, even if willing and able caretakers are available to help with childcare. “If you have a legal dependent, you have to take care of the legal dependent,” Moskovitz said.

“Any woman tha.