You can remember the meaning of 罪名 with this easy mnemonic:
I committed a sin (罪) and brought shame on my family name (名) by having criminal charges filed against me.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.