#040338 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 reproduces cleanly in print.
Not just a swatch — here's how #040338 works with other colors. Named schemes with #040338 in its natural role, and a note on why the supporting colors balance it.
Navy opens this coastal palette with sea-glass and warm sand alongside it, grounded by driftwood grey and a deep-navy anchor.
Navy 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.
Navy 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 Navy.
Navy plays the worn-leather lead, deepened by saddle brown and an oxblood anchor, softened by aged cream and cooled by a muted forest green.
Navy 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 Navy carrying the quiet middle.
How #040338 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 #040338 at work across the surfaces designers actually ship.
:root {
--color-base: #040338;
--color-base-rgb: 4 3 56;
--color-base-oklch: oklch(16.6% 0.099 269.7);
--color-50: #F1F0FE;
--color-100: #D8D8FD;
--color-200: #B3B2FB;
--color-300: #7F7EF2;
--color-400: #514FE3;
--color-500: #2E2BCA;
--color-600: #2B2999;
--color-700: #24236C;
--color-800: #1C1B46;
--color-900: #13122B;
--color-on-base: #FFFFFF;
}
// tailwind.config.js
colors: {
navy: {
50: '#F1F0FE',
100: '#D8D8FD',
200: '#B3B2FB',
300: '#7F7EF2',
400: '#514FE3',
500: '#2E2BCA',
600: '#2B2999',
700: '#24236C',
800: '#1C1B46',
900: '#13122B',
},
}
$base: #040338; $base-ink: #FFFFFF; $base-50: #F1F0FE; $base-100: #D8D8FD; $base-200: #B3B2FB; $base-300: #7F7EF2; $base-400: #514FE3; $base-500: #2E2BCA; $base-600: #2B2999; $base-700: #24236C; $base-800: #1C1B46; $base-900: #13122B; $base-hover: #03022F; $base-subtle: #8F8EEA;
{
"color": {
"base": {
"value": "#040338",
"type": "color"
},
"onBase": {
"value": "#FFFFFF",
"type": "color"
},
"scale": {
"50": {
"value": "#F1F0FE",
"type": "color"
},
"100": {
"value": "#D8D8FD",
"type": "color"
},
"200": {
"value": "#B3B2FB",
"type": "color"
},
"300": {
"value": "#7F7EF2",
"type": "color"
},
"400": {
"value": "#514FE3",
"type": "color"
},
"500": {
"value": "#2E2BCA",
"type": "color"
},
"600": {
"value": "#2B2999",
"type": "color"
},
"700": {
"value": "#24236C",
"type": "color"
},
"800": {
"value": "#1C1B46",
"type": "color"
},
"900": {
"value": "#13122B",
"type": "color"
}
}
}
}