format of midi messages

i still can't manage to send a message

I tried
Serial.write(00000100);
Serial.write(00000100);
Serial.write(00000100);

I tried
Serial.write("000001000000010000000100");

how do i need to seperate the midi bytes?
i want to send this message
10010010(Chan 3 Note on) 00000101(Note Number 5) 01111111(Note Velocity 127)