ugliness
Refers to physical or abstract ugliness. Often used in literary or formal contexts.
He is self-conscious about his ugliness.
I was surprised by the ugliness of that building.
Refers to a state of shame or disgrace, often in a moral or social sense. Less common than sense 1.
He was ashamed of the disgrace of his actions.