#5271DA 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 #5271DA works with other colors. Named schemes with #5271DA 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 #5271DA 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 #5271DA at work across the surfaces designers actually ship.
:root {
--color-base: #5271DA;
--color-base-rgb: 82 113 218;
--color-base-oklch: oklch(57.9% 0.164 268.5);
--color-50: #F2F4FD;
--color-100: #DDE3F9;
--color-200: #BCC8F1;
--color-300: #8EA1E2;
--color-400: #637CCF;
--color-500: #415CB4;
--color-600: #384B89;
--color-700: #2D3962;
--color-800: #212840;
--color-900: #161A27;
--color-on-base: #141310;
}
// tailwind.config.js
colors: {
royal-blue: {
50: '#F2F4FD',
100: '#DDE3F9',
200: '#BCC8F1',
300: '#8EA1E2',
400: '#637CCF',
500: '#415CB4',
600: '#384B89',
700: '#2D3962',
800: '#212840',
900: '#161A27',
},
}
$base: #5271DA; $base-ink: #141310; $base-50: #F2F4FD; $base-100: #DDE3F9; $base-200: #BCC8F1; $base-300: #8EA1E2; $base-400: #637CCF; $base-500: #415CB4; $base-600: #384B89; $base-700: #2D3962; $base-800: #212840; $base-900: #161A27; $base-hover: #2A4FC7; $base-subtle: #D0D7EF;
{
"color": {
"base": {
"value": "#5271DA",
"type": "color"
},
"onBase": {
"value": "#141310",
"type": "color"
},
"scale": {
"50": {
"value": "#F2F4FD",
"type": "color"
},
"100": {
"value": "#DDE3F9",
"type": "color"
},
"200": {
"value": "#BCC8F1",
"type": "color"
},
"300": {
"value": "#8EA1E2",
"type": "color"
},
"400": {
"value": "#637CCF",
"type": "color"
},
"500": {
"value": "#415CB4",
"type": "color"
},
"600": {
"value": "#384B89",
"type": "color"
},
"700": {
"value": "#2D3962",
"type": "color"
},
"800": {
"value": "#212840",
"type": "color"
},
"900": {
"value": "#161A27",
"type": "color"
}
}
}
}