A reasonably good book written from a chemistry (as opposed to a process engineering perspective which accounts for about 90 % of the workforce at oil companies) perspective about crude oil products is:
Chemistry of Petrochemical Processes, by Matar and Hatch
Lubricants are formulated with some additives and come from a fraction cut of crude oil (typically referred to as base oils). I've seen a few articles about them on the internet.