Optical and ultraviolet observations of 3C 279 during outburst