If all primary beneficiaries die, the contingent beneficiary gets the death benefit. If the insured chose a per stirpes death benefit designation, then the primary beneficiary’s heirs get their share of the benefit.