Image copyright Getty Images Image caption Mrs Clinton remains in the lead for the race to be the Democratic party's presidential candidate in the November elections

US Democratic presidential candidate Hillary Clinton has declared victory in the Kentucky primary while her opponent Senator Bernie Sanders won in Oregon.

Mrs Clinton remains the front-runner to secure the nomination in July, with a significant delegate lead.

But Mr Sanders again resisted pressure to drop out of the race, saying he was "in until the last ballot is cast".

Mrs Clinton only narrowly won Kentucky. With most of the votes counted she was less than 0.5% ahead.

But Alison Lundergan Grimes, chairwoman of the Kentucky State Board of Elections, told CNN that unofficial results confirmed that Clinton would narrowly win the state's primary contest.

Shortly afterwards, Mrs Clinton tweeted: "We just won Kentucky! Thanks to everyone who turned out. We're always stronger united."

Media playback is unsupported on your device Media caption Bernie Sanders: "We are in until the last ballot is cast"

Kentucky results as they come in

Oregon results as they come in

Analysis - Anthony Zurcher, BBC News, Washington

It was a narrow win in Kentucky, but Hillary Clinton will take it.

As far as the delegate count goes, it didn't really matter whether Mrs Clinton edged out Bernie Sanders or he ended up on top. But from a psychological standpoint - which is the only real battlefield left in this Democratic nomination race - it is probably a welcome boost.

Now Sanders supporters won't be able to tout much of a winning streak heading into the delegate-rich primary in California next month.

The case his campaign might make to the unbound super-delegates - who have largely endorsed Mrs Clinton and will almost certainly have to switch sides to give him the nomination - will be even less convincing.

With each state that ends short of a resounding win for Mr Sanders, Mrs Clinton takes one step closer to the nomination. And there aren't many states left on the board.

Given the turmoil in Nevada last weekend and Sanders team's assertions that Democrats are taking its supporters for granted, however, the party seems to be making little progress toward coming together to defeat Donald Trump in the autumn general election.

These Kentucky results aren't likely to change that, either.

Nevada chaos should worry Democrats

In the Republican race, Donald Trump won the party's only contest on Tuesday in Oregon, which was no surprise as he was the only candidate left in the race.

The Kentucky Democratic primary will award 60 delegates to go to the party's convention in Philadelphia while Oregon's primary will award 74.

Your browser does not support the iframe HTML tag. Try viewing this in a modern browser like Chrome, Safari, Firefox or Internet Explorer 9 or later.

Pressure is rising on Mr Sanders, a senator from Vermont who has historically been an independent, not a Democrat, to drop out of the race.

But he said he still has a path to the Democratic nomination.

Speaking at the California rally, Mr Sanders recognised his campaign's "steep hill to climb" but called for his supporters to remain hopeful and "take our fight into the convention" in July.

Image copyright AP Image caption Sanders supporters have been accused of vandalism at the Nevada Democratic convention

But senior party figures are pressing the Vermont senator to do more to bring his supporters into line, after some of them disrupted a state convention in Nevada last weekend.

Majority leader Harry Reid said Mr Sanders faced a "test of leadership".

And Democratic National Committee chairwoman Debbie Wasserman Schultz described Mr Sanders' response to the violence as "anything but acceptable".

Republican Donald Trump had a busy day on Tuesday. As well as winning in Oregon he:

struck a fundraising deal with the Republican National Committee

said he would meet the North Korean leader to discuss Pyongyang's nuclear programme

called for a renegotiation of the Paris climate agreement involving more than 170 countries

released financial records claiming he holds $10bn (£6.9bn) in assets

Trump open to talks with North Korea

More on the Trump campaign

Media playback is unsupported on your device Media caption Can Trump widen his appeal in places like Massachusetts?

Young Republicans weigh up Trump effect

Who will be Trump's running mate?

How Trump can win the White House

28 things that Donald Trump believes