Preheat your oven to 350°F (175°C). Prepare two 8-inch cake pans by buttering and lightly dusting them with flour, then set them aside.
In the bowl of a stand mixer, cream together the softened butter and granulated sugar until the mixture is fluffy and pale. Add in the eggs and vanilla extract, then beat on high speed for about 7 minutes, or until light and airy. Slowly incorporate the warm milk, ensuring the batter is smooth.
In a separate bowl, sift together the flour, cocoa powder, baking powder, and sea salt. Gradually fold this dry mixture into the wet ingredients, mixing just until everything is well combined.
Divide the batter evenly between the prepared cake pans and bake for approximately 30 minutes, or until a toothpick inserted into the center comes out clean. Once baked, remove from the oven and allow the cakes to cool slightly before transferring them to a wire rack to cool completely.