As you have noticed, if the gain is set correctly so that the output voltage changes by 1.5V for each 1V change in input, you won't get 5V output for a 3V input.
In order to get the correct gain, and to have the output voltages match, you need to offset what the op amp thinks is zero.
If the...