In ImageMagick 7, try magick logo.png -background "#163047" -alpha remove -alpha off logo.jpg. Reopen the JPEG and inspect its corners and the faint edge of the logo.
JPEG compression may slightly alter sampled RGB values, especially near a contrasting shape. If a design system requires exact flat pixels and still accepts PNG, save the flattened result as PNG instead.
Why Your Transparent Image Turns Black in JPG · ImageMagick alpha