In a small saucepan, melt butter over medium heat; reduce heat to low, and keep warm. (Alternatively, melt butter in a microwave-safe bowl just before using.)
In the bowl of a stand mixer fitted with the whisk attachment, beat eggs, granulated sugar, brown sugar, and salt at high speed until pale, thick, and nearly tripled in volume, about 4 minutes.
In a small bowl, whisk together buttermilk, vanilla bean paste, vinegar, and several drops of red gel food coloring (if using) until combined and desired color is reached. Gently fold buttermilk mixture into egg mixture.
In a small bowl, whisk together flour, cocoa, baking powder, and baking soda.
Using a balloon whisk or a flexible spatula, gently fold flour mixture into egg mixture in two to three additions until a few streaks of flour remain. Add warm melted butter in two to three additions, gently folding after each addition until smooth, glossy, and fully incorporated. Cover with plastic wrap, pressing wrap directly onto surface of batter. Refrigerate for at least 2 hours, preferably overnight. (Batter can be refrigerated for up to 2 days.)
Preheat oven to 425°F (220°C). Using a pastry brush, lightly coat each well of madeleine pans with melted butter. Dust each well with flour, tapping out excess. Lightly dust each floured well with cocoa, tapping out any excess.
Transfer cold batter to a pastry bag, and cut a ½-inch (1.25-cm) opening in tip. Pipe batter into bottom portion—the deepest part—of each prepared well, filling each about two-thirds full. Do not spread batter.
Bake until edges are set and centers are still wet and not risen, 4 to 5 minutes; reduce oven temperature to 400°F (205°C), and bake until madeleines are domed and an instant-read thermometer inserted in center registers 200°F (93°C) to 210°F (99°C), 8 to 10 minutes more. Let cool in pans for 3 minutes. Using an offset spatula, gently go around sides of wells, lifting from bottom. Lightly dip or brush hot madeleines in/with cooled Simple Syrup. Let cool completely on a wire rack. Lightly dust with confectioners’ sugar just before serving