An oil and fat composition satisfying the following conditions of (a) to (g), wherein the oil and fat composition is produced by mixing the following transesterified oil A and the following transesterified oil B at a weight ratio of 30:70 to 50:50 to obtain a mixed oil and fractionating the mixed oil to remove a high melting point fraction and a low melting point fraction and to obtain an intermediate melting point fraction: (a) an X3 content is 3 to 20% by weight; (b) a weight ratio of P3/X3 is not less than 0.35; (c) an X2O content is 45 to 80% by weight; (d) a weight ratio of XOX/X2O is 0.20 to 0.65; (e) a weight ratio of PStO/X2O is 0.10 to 0.45; (f) a weight ratio of St2O/X2O is 0.05 to 0.35; and (g) a weight ratio of St/P is not more than 0.80; (in the above conditions of (a) to (g), each of X, O, P, St, X3, P3, X2O, XOX, PStO, and St2O represents the following: X: saturated fatty acid having 14 carbon atoms or more; O: oleic acid; P: palmitic acid; St: stearic acid; X3: triglyceride in which three molecules of X are bound; P3: triglyceride in which three molecules of P are bound; X2O: triglyceride in which two molecules of X and one molecule of O are bound; XOX: triglyceride in which X is bound at positions 1 and 3 and O is bound at position 2; PStO: triglyceride in which one molecule of P, one molecule of St, and one molecule of O are bound; and St2O: triglyceride in which two molecules of St and one molecule of O are bound); the transesterified oil A: an oil and fat obtained by subjecting a raw material oil and fat to a random transesterification reaction, the raw material oil and fat having, in constituent fatty acids thereof, a palmitic acid content of 15 to 35% by weight, a stearic acid content of 30 to 55% by weight, an oleic acid content of 15 to 35% by weight, and a total content of linoleic acid and linolenic acid of less than 10% by weight; and the transesterified oil B: an oil and fat obtained by subjecting a raw material oil and fat to a random transesterification reaction, the raw material oil and fat having, in constituent fatty acids thereof, a palmitic acid content of 40 to 60% by weight, a stearic acid content of less than 15% by weight, an oleic acid content of 20 to 45% by weight, and a total content of linoleic acid and linolenic acid of less than 15% by weight. (a) an X3 content is 3 to 20% by weight; (b) a weight ratio of P3/X3 is not less than 0.35; (c) an X2O content is 45 to 80% by weight; (d) a weight ratio of XOX/X2O is 0.20 to 0.65; (e) a weight ratio of PStO/X2O is 0.10 to 0.45; (f) a weight ratio of St2O/X2O is 0.05 to 0.35; and (g) a weight ratio of St/P is not more than 0.80; X: saturated fatty acid having 14 carbon atoms or more; O: oleic acid; P: palmitic acid; St: stearic acid; X3: triglyceride in which three molecules of X are bound; P3: triglyceride in which three molecules of P are bound; X2O: triglyceride in which two molecules of X and one molecule of O are bound; XOX: triglyceride in which X is bound at positions 1 and 3 and O is bound at position 2; PStO: triglyceride in which one molecule of P, one molecule of St, and one molecule of O are bound; and St2O: triglyceride in which two molecules of St and one molecule of O are bound); the transesterified oil A: an oil and fat obtained by subjecting a raw material oil and fat to a random transesterification reaction, the raw material oil and fat having, in constituent fatty acids thereof, a palmitic acid content of 15 to 35% by weight, a stearic acid content of 30 to 55% by weight, an oleic acid content of 15 to 35% by weight, and a total content of linoleic acid and linolenic acid of less than 10% by weight; and the transesterified oil B: an oil and fat obtained by subjecting a raw material oil and fat to a random transesterification reaction, the raw material oil and fat having, in constituent fatty acids thereof, a palmitic acid content of 40 to 60% by weight, a stearic acid content of less than 15% by weight, an oleic acid content of 20 to 45% by weight, and a total content of linoleic acid and linolenic acid of less than 15% by weight.