#040EC4 is a deep, cool violet. On the Color Lab it reads clean and engineered, bold and ownable. It sits well as a supporting tone.
Not just a swatch — here's how #040EC4 works with other colors. Named schemes with #040EC4 in its natural role, and a note on why the supporting colors balance it.
Medium 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.
Medium 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 Medium Blue.
Medium 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 Medium Blue.
Medium Blue opens this coastal palette with sea-glass and warm sand alongside it, grounded by driftwood grey and a deep-navy anchor.
Medium 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 Medium Blue carrying the quiet middle.
How #040EC4 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 #040EC4 at work across the surfaces designers actually ship.
:root {
--color-base: #040EC4;
--color-base-rgb: 4 14 196;
--color-base-oklch: oklch(37.8% 0.252 264.6);
--color-50: #F0F1FE;
--color-100: #D8DAFD;
--color-200: #B1B4FC;
--color-300: #7A80F6;
--color-400: #4A51E8;
--color-500: #262ECF;
--color-600: #252B9D;
--color-700: #21256E;
--color-800: #191C48;
--color-900: #12132C;
--color-on-base: #FFFFFF;
}
// tailwind.config.js
colors: {
medium-blue: {
50: '#F0F1FE',
100: '#D8DAFD',
200: '#B1B4FC',
300: '#7A80F6',
400: '#4A51E8',
500: '#262ECF',
600: '#252B9D',
700: '#21256E',
800: '#191C48',
900: '#12132C',
},
}
$base: #040EC4; $base-ink: #FFFFFF; $base-50: #F0F1FE; $base-100: #D8DAFD; $base-200: #B1B4FC; $base-300: #7A80F6; $base-400: #4A51E8; $base-500: #262ECF; $base-600: #252B9D; $base-700: #21256E; $base-800: #191C48; $base-900: #12132C; $base-hover: #030B9C; $base-subtle: #AEB2F2;
{
"color": {
"base": {
"value": "#040EC4",
"type": "color"
},
"onBase": {
"value": "#FFFFFF",
"type": "color"
},
"scale": {
"50": {
"value": "#F0F1FE",
"type": "color"
},
"100": {
"value": "#D8DAFD",
"type": "color"
},
"200": {
"value": "#B1B4FC",
"type": "color"
},
"300": {
"value": "#7A80F6",
"type": "color"
},
"400": {
"value": "#4A51E8",
"type": "color"
},
"500": {
"value": "#262ECF",
"type": "color"
},
"600": {
"value": "#252B9D",
"type": "color"
},
"700": {
"value": "#21256E",
"type": "color"
},
"800": {
"value": "#191C48",
"type": "color"
},
"900": {
"value": "#12132C",
"type": "color"
}
}
}
}