"Longest" depends entirely on how you measure it, but The Legend of Zelda: Twilight Princess is a common answer, with a first playthrough typically running 50 to 70 hours.
That figure covers the main quest plus a reasonable amount of exploration. Completionists chasing every dungeon item, side quest and collectible will push well past it.
Open-world RPGs, grand strategy titles and games with large collectible checklists routinely beat that number, and some strategy or simulation games have effectively no ceiling at all. What makes Twilight Princess stand out is how consistently long it feels even without padding, thanks to its sprawling overworld and lengthy dungeons.
Actual playtime varies enormously with playstyle, so treat any single figure as a rough guide rather than a rule.