#340271 is a deep, cool purple. On the Color Lab it reads clean and engineered, quietly premium. It reproduces cleanly in print.
Not just a swatch — here's how #340271 works with other colors. Named schemes with #340271 in its natural role, and a note on why the supporting colors balance it.
Midnight Blue carries the depth in this luxury scheme, offset by a brass accent and near-black and held together by a deep neutral and an off-white surface.
Midnight Blue adds the colour to this moody editorial scheme — charcoal and a mid-grey around it, a bone highlight, and a muted jewel accent drawn from Midnight Blue.
Midnight Blue opens this coastal palette with sea-glass and warm sand alongside it, grounded by driftwood grey and a deep-navy anchor.
Midnight Blue sits between cream and a deep berry here, softened by a blush accent and grounded by charcoal.
Midnight 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 Midnight Blue carrying the quiet middle.
How #340271 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 #340271 at work across the surfaces designers actually ship.
:root {
--color-base: #340271;
--color-base-rgb: 52 2 113;
--color-base-oklch: oklch(29.1% 0.159 293.0);
--color-50: #F7F0FE;
--color-100: #E9D8FD;
--color-200: #D2B1FC;
--color-300: #B179F6;
--color-400: #9149E9;
--color-500: #7225D0;
--color-600: #5B259D;
--color-700: #43206F;
--color-800: #2E1948;
--color-900: #1D112C;
--color-on-base: #FFFFFF;
}
// tailwind.config.js
colors: {
midnight-blue: {
50: '#F7F0FE',
100: '#E9D8FD',
200: '#D2B1FC',
300: '#B179F6',
400: '#9149E9',
500: '#7225D0',
600: '#5B259D',
700: '#43206F',
800: '#2E1948',
900: '#1D112C',
},
}
$base: #340271; $base-ink: #FFFFFF; $base-50: #F7F0FE; $base-100: #E9D8FD; $base-200: #D2B1FC; $base-300: #B179F6; $base-400: #9149E9; $base-500: #7225D0; $base-600: #5B259D; $base-700: #43206F; $base-800: #2E1948; $base-900: #1D112C; $base-hover: #2A015C; $base-subtle: #C099F0;
{
"color": {
"base": {
"value": "#340271",
"type": "color"
},
"onBase": {
"value": "#FFFFFF",
"type": "color"
},
"scale": {
"50": {
"value": "#F7F0FE",
"type": "color"
},
"100": {
"value": "#E9D8FD",
"type": "color"
},
"200": {
"value": "#D2B1FC",
"type": "color"
},
"300": {
"value": "#B179F6",
"type": "color"
},
"400": {
"value": "#9149E9",
"type": "color"
},
"500": {
"value": "#7225D0",
"type": "color"
},
"600": {
"value": "#5B259D",
"type": "color"
},
"700": {
"value": "#43206F",
"type": "color"
},
"800": {
"value": "#2E1948",
"type": "color"
},
"900": {
"value": "#1D112C",
"type": "color"
}
}
}
}