A nucleic acid encoding a protein which has an amino acid sequence according to SEQ ID NO: 2, 12, or 14, or the amino acid sequence modified by addition or deletion of one or more amino acids and/or substitution by other amino acids, and which has activity to transfer a glycosyl group to the 3′-position of anthocyanins.