[Object] To provide an oil and fat composition that can be used as a low trans fatty acid content, non-lauric, non-tempering type hard butter and an oil-based food product comprising the oil and fat composition that exhibits good heat resistance and melting feeling in the mouth. [Means for Solving the Problems] The oil and fat composition of the present invention is characterized by satisfying the following conditions of (a) to (g): (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 wherein X represents saturated fatty acid having 14 carbon atoms or more 0 represents oleic acid P represents palmitic acid and St represents stearic acid.