Revenue and Taxation Code § 13551
ARTICLE 2. Interest
Every payment on the tax imposed by this part is applied, first, to any interest due on the tax, secondly, to any penalty imposed by this part, and then, if there is any balance, to the tax itself.