#40318E is a deep, cool purple. On the Color Lab it reads clean and engineered, quietly premium. It carries a legible label as a UI accent and reproduces cleanly in print.
Not just a swatch — here's how #40318E works with other colors. Named schemes with #40318E in its natural role, and a note on why the supporting colors balance it.
Dark Slate Blue opens this coastal palette with sea-glass and warm sand alongside it, grounded by driftwood grey and a deep-navy anchor.
Dark Slate 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.
Dark Slate Blue anchors this café scheme as the warm mid-tone, lifted by latte cream and a muted sage accent and grounded by espresso brown and a warm charcoal.
Dark Slate Blue sits between cream and a deep berry here, softened by a blush accent and grounded by charcoal.
Dark Slate 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 Dark Slate Blue carrying the quiet middle.
How #40318E 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 #40318E at work across the surfaces designers actually ship.
:root {
--color-base: #40318E;
--color-base-rgb: 64 49 142;
--color-base-oklch: oklch(38.8% 0.147 284.6);
--color-50: #F5F3FB;
--color-100: #E4E0F5;
--color-200: #C9C2EA;
--color-300: #A398D7;
--color-400: #7E70C2;
--color-500: #5E4FA6;
--color-600: #4D427F;
--color-700: #3A345B;
--color-800: #29253C;
--color-900: #1A1825;
--color-on-base: #FFFFFF;
}
// tailwind.config.js
colors: {
dark-slate-blue: {
50: '#F5F3FB',
100: '#E4E0F5',
200: '#C9C2EA',
300: '#A398D7',
400: '#7E70C2',
500: '#5E4FA6',
600: '#4D427F',
700: '#3A345B',
800: '#29253C',
900: '#1A1825',
},
}
$base: #40318E; $base-ink: #FFFFFF; $base-50: #F5F3FB; $base-100: #E4E0F5; $base-200: #C9C2EA; $base-300: #A398D7; $base-400: #7E70C2; $base-500: #5E4FA6; $base-600: #4D427F; $base-700: #3A345B; $base-800: #29253C; $base-900: #1A1825; $base-hover: #332670; $base-subtle: #C3BDE1;
{
"color": {
"base": {
"value": "#40318E",
"type": "color"
},
"onBase": {
"value": "#FFFFFF",
"type": "color"
},
"scale": {
"50": {
"value": "#F5F3FB",
"type": "color"
},
"100": {
"value": "#E4E0F5",
"type": "color"
},
"200": {
"value": "#C9C2EA",
"type": "color"
},
"300": {
"value": "#A398D7",
"type": "color"
},
"400": {
"value": "#7E70C2",
"type": "color"
},
"500": {
"value": "#5E4FA6",
"type": "color"
},
"600": {
"value": "#4D427F",
"type": "color"
},
"700": {
"value": "#3A345B",
"type": "color"
},
"800": {
"value": "#29253C",
"type": "color"
},
"900": {
"value": "#1A1825",
"type": "color"
}
}
}
}