#040C65 is a deep, cool violet. On the Color Lab it reads clean and engineered, quietly premium. It is too dark to lead as a primary accent and sits well as a supporting tone.
Not just a swatch — here's how #040C65 works with other colors. Named schemes with #040C65 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 plays the worn-leather lead, deepened by saddle brown and an oxblood anchor, softened by aged cream and cooled by a muted forest green.
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 #040C65 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 #040C65 at work across the surfaces designers actually ship.
:root {
--color-base: #040C65;
--color-base-rgb: 4 12 101;
--color-base-oklch: oklch(24.5% 0.148 265.9);
--color-50: #F0F1FE;
--color-100: #D8DBFD;
--color-200: #B1B7FC;
--color-300: #7C86F3;
--color-400: #4D5AE5;
--color-500: #2937CB;
--color-600: #28319A;
--color-700: #22286D;
--color-800: #1A1E47;
--color-900: #12142B;
--color-on-base: #FFFFFF;
}
// tailwind.config.js
colors: {
midnight-blue: {
50: '#F0F1FE',
100: '#D8DBFD',
200: '#B1B7FC',
300: '#7C86F3',
400: '#4D5AE5',
500: '#2937CB',
600: '#28319A',
700: '#22286D',
800: '#1A1E47',
900: '#12142B',
},
}
$base: #040C65; $base-ink: #FFFFFF; $base-50: #F0F1FE; $base-100: #D8DBFD; $base-200: #B1B7FC; $base-300: #7C86F3; $base-400: #4D5AE5; $base-500: #2937CB; $base-600: #28319A; $base-700: #22286D; $base-800: #1A1E47; $base-900: #12142B; $base-hover: #030A52; $base-subtle: #989FED;
{
"color": {
"base": {
"value": "#040C65",
"type": "color"
},
"onBase": {
"value": "#FFFFFF",
"type": "color"
},
"scale": {
"50": {
"value": "#F0F1FE",
"type": "color"
},
"100": {
"value": "#D8DBFD",
"type": "color"
},
"200": {
"value": "#B1B7FC",
"type": "color"
},
"300": {
"value": "#7C86F3",
"type": "color"
},
"400": {
"value": "#4D5AE5",
"type": "color"
},
"500": {
"value": "#2937CB",
"type": "color"
},
"600": {
"value": "#28319A",
"type": "color"
},
"700": {
"value": "#22286D",
"type": "color"
},
"800": {
"value": "#1A1E47",
"type": "color"
},
"900": {
"value": "#12142B",
"type": "color"
}
}
}
}