How can I change the color of my app title bar programatically?

I don't want to simulate a title bar, I need to color the real title bar of my app. I don't want to subclass my app.