12.30 pm just after noon.
12.30 am is just after midnight.
This makes sense, because the first is very early 'afternoon' while the second is very early morning.
While we do tend to refer to midday as 12pm and midnight as 12am, strictly speaking this is illogical. The abbreviation 'am' stands for 'ante meridiem', which is a Latin term meaning 'before noon', while 'pm' stands for 'post meridiem' meaning 'after noon'. Therefore, both 12pm and 12am denote the same time of day : twelve hours after noon or twelve hours before noon are both midnight.