Keep your humor clean for long-term success.
I've been studying and using humor from the platform for 30 years. As each year passes, I believe more strongly that keeping your humor clean is the way to go. I've made the mistake in the past, more than once, that I can take more liberties with "this audience"... and have normally been wrong.
Why do people use off-color humor?
First, it's easy. It's much simpler to say a four letter word or tell a sex joke than to use your creative muscle to actually create something that's funny on its own. It's easier to get people to laugh at shock value or by making them uncomfortable than by creating a clever and original humor bit that hits the funnybone. I call it a comedy cop out. The lazy path to humor.
Second, monkey see monkey do. They see comics use off-color material almost all the time, and get laughs. Translation, if you want to get laughs, be blue.