I may be proved wrong, but I think all of the gun blueing and blacking products work only on steel.
The only brass blacking formula I can find in a search through my gun books is as follows, from an old American publication:
Potassium Sulfide 1 oz
Ammonium Hydrosulphide 2 1/4 oz
1 US gallon of water.
Must be mixed in a glass container.
Don’t know whether these chemicals are available.