In a loop-in arrangement, permanent line connections remain energised while the wall switch leaves the lamp off. Other lighting arrangements exist too. Neither darkness nor a circuit label identifies every supply.
Keep the fitting closed. This lesson explains the diagram and the limits of colour matching; it does not establish competence to open or replace ceiling wiring. Safe access, isolation, conductor identification and verification are a competent electrician’s work.