Keep in mind Common Anode is negative logic so active low turns On, so we call this a Low Side switch which sinks Current limited by a series R and all voltage drops in the KVL loop.
Also Active 1 stage Switches are inverting, thus you now have positive logic and they offer Logic level sensitive N-channel MOSFETs by distributor selection. ( thousands of types)
So choose RdsOn to be << ESR of power LEDs for low dissipation.
3V 5mm Blue or White LEDs are not power type and can be driven from low voltage logic levels such as 3.3V directly or 5V with 100 Ohms in series.
(5-3=)2V/20mA=100 Ohms.... but since 5V logic CMOS driver may have an ESR be 25 or 50 Ohm's (Vol/Iol).. check... , the series R can be reduced to 50 Ohms from 5V. CD4xxx logic has 200~300 Ohms ESR,