Any of the pairs of nucleotides connecting the complementary strands of a molecule of DNA or RNA and consisting of a purine linked to a pyrimidine by hydrogen bonds. The base pairs are adenine-thymine and guanine-cytosine in DNA, and adenine-uracil and guanine-cytosine in RNA or in hybrid DNA-RNA pairing.