40 mA is the limit for sourcing or sinking. As you have drawn it they will be sinking.
However with a 270R series resistor you are not going to pull 20mA down them, it will be less. Each colour will have a different forward voltage and so if the resistors are all the same the currents will not be.