Really Hard Riddle 5

Q: Alone I am 24th, with a friend I am 20.

Another friend and I am unclean.

What am I?

A: X. X is the 24th letter of the alphabet, XX is the Roman numeral for 20, and XXX is the code for adult films