An antonym for notoriety is obscurity. Notoriety refers to the state of being famous or well-known, typically for some bad quality or deed. On the other hand, obscurity refers to the state of being unknown, inconspicuous, or not easily noticed.
For example, a criminal might gain notoriety for their actions, while a person living a quiet life in a small town might remain in obscurity.