The application relates to a liquid-crystalline medium comprising at least one dichroic dye having a rylene structure which absorbs red light. The application furthermore relates to a device, preferably a device for the regulation of the passage of energy through a light-transmitting area, which contains the liquid-crystalline medium.