Since there is a Nobody when there's Heartless, Sora's Heartless "Anti-Sora" wields darkness, since Heartless are beings of darkness. Otherwise, Riku-Ansem is the one who wields darkness, because Riku had released the darkness in his heart to use it.