Blending Colours

How would I go about blending two colours with a percentage of blend?

For example if I was blending Red (1f,0f,0f) and Blue (0f,0f,1f) but wanted only a 25% transition from red to blue… how would I go about this?