The empirical rule for calculation of electric charges of the elementary particles is offered. The given rule contains two parameters: full number of colors Nc of which color of the given particle is formed and a color index L - number of colors which the given particle possesses. The offered rule allows calculating electric charges of all elementary particles - leptons, quarks and intermediate vector bosons.