While far from out of this world, “Fly Me to the Moon” stays aloft with a fun premise, star power, a nice tempo and good vibes.

The romantic comedy set in the late 1960s against the backdrop of the space race between the United States and the Soviet Union pairs Scarlett Johansson and Channing Tatum as, respectively, a freewheeling New York City marketing specialist and a by-the-books NASA launch director.

Directed by Greg Berlanti (“Love, Simon”), “Fly Me to the Moon” is jaunty and jazzy from its musically enhanced opening credits sequence, which brings the viewer up to speed on the relevant history, including the tragedy of the Apollo 1 mission in early 1967, which greatly informs the behavior of Tatum’s Cole Davis.It is now seven months from the launch of the Apollo 11 mission, which, if all goes according to plan, will see the U.S. put the first men on the moon in mid-1969. To say Cole is wound a little tightly is an understatement — he’s obsessed with catching a black cat having the run of the Cape Kennedy facility in Florida — but, in fairness to him, he is nearly blown to smithereens in the movie’s first few minutes.

It is then we also are introduced to Johansson’s Kelly Jones, who, pretending to be pregnant, sells some male car executives — who initially do their best to dismiss her — on an advertising campaign that would sell not just the automobiles’ speed but also their safety, which, she says, will appeal to the wives of the prospective customers.

NASA needs that creativity and do-whatever-it-takes attitude to resell the American public on the Apollo program, believes Moe Berkus (Woody Harrelson), a shadowy government operative in the administration of President Richard Nixon. After all, the agency is working to fulfill the late President John F. Kennedy’s desire to see American men on the moon while the war in Vietnam is costing American lives — and American taxpayers, with members of Congress considering pulling NASA’s funding. Thus, Moe makes Kelly an offer she can’t refuse.

So she’s off to Florida with assistant Ruby (Anna Garcia), who is conflicted about doing anything for Nixon. There, Kelly encounters Cole in a diner, where he puts out the fire she’s started with a book and a candle. He proceeds to tell her that while she’s incredibly beautiful and he’d love to get to know her, he simply doesn’t have time.

Next thing he knows, she’s bouncing around a restricted area at Kennedy and all up in his very demanding business. The attraction he felt seemingly gone, he banishes her and Ruby to a bleak, windowless office.

That won’t stop Kelly, who, along with having a window installed by facility personnel, sets about marketing the mission without his help, going so far as to hire actors to portray him and his right-hand man, Henry Smalls (Ray Romano), in interviews with the press with which Cole refuses to be involved.

As “Fly Me to the Moon” — a little long at more than two hours — dances on and launch day approaches, Cole and Kelly must learn to work together, of course, which (surprise!) brings them closer together. But, wouldn’t you know it, issues crop up that keep them soaring off in opposite directions.

These are brush fires, however. If Cole catches wind of a high-stakes endeavor Moe coerces Kelly into undertaking — we won’t spoil the nature of it, as it’s pretty clever, along with coming deep into the proceedings — it very well could spell the end to any stellar future the two could share.

As a tandem, Johansson (“Jojo Rabbit,” “Black Widow”) and Tatum (“The Lost City,” “Magic Mike’s Last Dance”) are … fine. You may find yourself, as we did, spending time while watching “Fly Me to the Moon” thinking about the myriad potential Hollywood pairings that may have made the movie more consistently dynamic. That said, they hit the major moments well enough.

Working from the first produced screenplay by Rose Gilroy, Berlanti keeps things moving at a peppy-enough clip — aided by an enjoyable selection of songs from the era selected by music supervisor Season Kent the ever-moving camera of director of photography Dariusz Wolski — that you almost don’t notice that writer and director have failed to flesh out any of the characters aside from Kelly and Cole. Given Romano’s presence, you’d think more would have been made of Henry, who’s barely more than a background player.

Not surprisingly, Harrelson (“The People vs. Larry Flynt”), playing a character somewhat similar to the one he occupied in the so-so 2023 series “The White House Plumbers,” finds his moments to be comically impactful. However, the comedy MVP is Jim Rash, whose Lance Vespertine — an eccentric movie director on Kelly’s payroll — essentially is the actor’s Dean Pelton from “Community” with a different look. (No complaints here.)

From a production standpoint, you can’t help but notice that, for a movie built around the launch of a spacecraft, “Fly Me to the Moon” doesn’t exactly boast the most expensive-looking sets or props. On the other hand, with a reported budget of about $100 million, it’s pretty steep for a rom-com,

Hey, can you really put a price on good vibes?