As Super Lube's chart says, silicone lube is fine for everything except silicone material. Silicone O-rings are likely to be any color other than black, such as clear, red or blue. Just look at your o-rings.
Nyogel 760G has been fine for me, as it's good for all o-rings, and advertises as specifically for electrical contacts. Other users have other favorite products, of course.
NyoGel® 760G is the universal standard dielectric grease which protects electric connectors against fretting, corrosion, moisture, dirt, and oxidation.
www.nyelubricants.com
It can be a little hard to find since you can't find it at the common stores. Some flashlight vendors sell it. Good luck if you try Nye's "request a sample," - I tried that some years ago, and they flat out refused based on my not being a company with the potential to order thousands of dollars worth each year. They referred me to an online industrial retailer with very high prices.