A nitrogen-containing base; a pyrimidine of DNA and RNA.