How to specify ofBackground( ) with a hex value instead of RGB?

I’m trying to specify my background color:
ofBackground(65,70,245);

Is there’s anyway I can use a hex value instead of the RGB values? I tried doing this:
ofBackground(0x4146f5);

But that doesn’t seem to be working. I know there’s a way to set hex color using:
ofSetHexColor(0x4146f5);

But how do I do that for the background?

Hi, you can use

ofBackgroundHex(0xff0000)

http://openframeworks.cc/documentation/graphics/ofGraphics/#show_ofBackgroundHex

Ah ok, that makes sense! Thanks!