This template takes only 1 argument (un-named), and returns the resulting color for that faction. For example, if you are creating a template/userbox, and need the UEF blue background, do this:
And you will get 3766ee.
You can use this to color boxes:
|A UEF box|
If your background is gray, than you have failed to correctly write the faction name, and it was not recognized.