Correct Resistor for maximum light output on Red LED

encryptor:
Oh wait I've been using 220k ohm. Things are working better with my smallest resistor now, which is 4.7k ohm. And for the blue LED no resistor at all.

Yes, 220K is about 1000 times too big. Don't leave the resistor out, it isn't good for the LED or your Arduino.