A ZIP archive begins with a local file header whose signature is 'PK' (0x50 0x4B, the initials of Phil Katz) followed by 0x03 0x04. Empty archives and some variants start with the central-directory (PK\x01\x02) or end-of-central-directory (PK\x05\x06) signatures.
spec: PKWARE APPNOTE.TXT .ZIP File Format Specification
Signatures are 32-bit values stored little-endian: local file header 0x04034b50 => 50 4B 03 04.
Empty archive: 'PK\x05\x06' (50 4B 05 06, end of central directory).
Spanned/split markers use 'PK\x07\x08' (50 4B 07 08).
Many formats are ZIP containers and share this magic: JAR, DOCX/XLSX/PPTX (OOXML), ODT (ODF), EPUB, APK. Disambiguation requires inspecting the archive contents (e.g. mimetype entry, META-INF).
The 'PK' bytes are the initials of Phil Katz, author of PKZIP.
ext.notes — https://en.wikipedia.org/wiki/List_of_file_signaturesCorroborates PK\x03\x04 / PK\x05\x06 / PK\x07\x08 ZIP signatures and the shared-base-format note (jar, docx, xlsx, odt, epub, apk all ZIP containers).