The black heart next to the Malaysian flag symbolizes the state of Perak, which features black prominently in its own flag.