Why is the LED not lighting with the correct color?
You need to use a distinct resistor for each LED.
The lower forward voltage of the green LED is basically clamping the joined anodes at a voltage lower than that where any meaningful current will flow through the higher forward voltage of the blue LED's junction.
In fact not only do you need individual resistors, you probably want unique resistor values to take into account each LED's specific forward voltage and efficiency.