Commensurate mixtures of ultracold atoms in one dimension