Catalysis of the reaction: 1,2-diacyl-sn-glycerol + UDP-D-galactose = 1,2-diacyl-3-beta-D-galactosyl-sn-glycerol + H+ + UDP.
uridine diphosphogalactose-1,2-diacylglycerol galactosyltransferase activity