#5171D1 is a mid-toned, cool violet. On the Color Lab it reads clean and engineered. It carries a legible label as a UI accent and sits well as a supporting tone.
Not just a swatch — here's how #5171D1 works with other colors. Named schemes with #5171D1 in its natural role, and a note on why the supporting colors balance it.
Royal Blue opens this coastal palette with sea-glass and warm sand alongside it, grounded by driftwood grey and a deep-navy anchor.
Royal Blue is the vivid signal in this product UI — on a near-black surface with cool white, a slate grey and a lighter tint of Royal Blue.
Royal Blue plays the worn-leather lead, deepened by saddle brown and an oxblood anchor, softened by aged cream and cooled by a muted forest green.
Royal Blue sits between cream and a deep berry here, softened by a blush accent and grounded by charcoal.
Royal Blue is the single accent in this high-contrast editorial system — set on near-white paper against near-black ink, with a warm grey and a desaturated tint of Royal Blue carrying the quiet middle.
How #5171D1 actually behaves in design work — read from its OKLCH lightness, chroma and hue, not just its raw numbers. Ten signals to help you decide where this color earns its place.
Not a swatch to memorise — a color to build with. Here is #5171D1 at work across the surfaces designers actually ship.
:root {
--color-base: #5171D1;
--color-base-rgb: 81 113 209;
--color-base-oklch: oklch(57.3% 0.152 267.6);
--color-50: #F2F5FC;
--color-100: #DEE4F7;
--color-200: #BFCAEE;
--color-300: #92A5DD;
--color-400: #6981C9;
--color-500: #4761AD;
--color-600: #3D4F85;
--color-700: #303C5F;
--color-800: #23293E;
--color-900: #171B26;
--color-on-base: #141310;
}
// tailwind.config.js
colors: {
royal-blue: {
50: '#F2F5FC',
100: '#DEE4F7',
200: '#BFCAEE',
300: '#92A5DD',
400: '#6981C9',
500: '#4761AD',
600: '#3D4F85',
700: '#303C5F',
800: '#23293E',
900: '#171B26',
},
}
$base: #5171D1; $base-ink: #141310; $base-50: #F2F5FC; $base-100: #DEE4F7; $base-200: #BFCAEE; $base-300: #92A5DD; $base-400: #6981C9; $base-500: #4761AD; $base-600: #3D4F85; $base-700: #303C5F; $base-800: #23293E; $base-900: #171B26; $base-hover: #3153B8; $base-subtle: #D0D7ED;
{
"color": {
"base": {
"value": "#5171D1",
"type": "color"
},
"onBase": {
"value": "#141310",
"type": "color"
},
"scale": {
"50": {
"value": "#F2F5FC",
"type": "color"
},
"100": {
"value": "#DEE4F7",
"type": "color"
},
"200": {
"value": "#BFCAEE",
"type": "color"
},
"300": {
"value": "#92A5DD",
"type": "color"
},
"400": {
"value": "#6981C9",
"type": "color"
},
"500": {
"value": "#4761AD",
"type": "color"
},
"600": {
"value": "#3D4F85",
"type": "color"
},
"700": {
"value": "#303C5F",
"type": "color"
},
"800": {
"value": "#23293E",
"type": "color"
},
"900": {
"value": "#171B26",
"type": "color"
}
}
}
}