#4040E7 is a mid-toned, cool violet. On the Color Lab it reads clean and engineered, bold and ownable. It carries a legible label as a UI accent and sits well as a supporting tone.
Not just a swatch — here's how #4040E7 works with other colors. Named schemes with #4040E7 in its natural role, and a note on why the supporting colors balance it.
Han Purple is the vivid signal in this product UI — on a near-black surface with cool white, a slate grey and a lighter tint of Han Purple.
Han Purple opens this coastal palette with sea-glass and warm sand alongside it, grounded by driftwood grey and a deep-navy anchor.
Han Purple sits between cream and a deep berry here, softened by a blush accent and grounded by charcoal.
Han Purple 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 Han Purple carrying the quiet middle.
Han Purple glows at the center of this sunset palette, joined by coral and gold, deepened by a plum anchor and cooled with cream.
How #4040E7 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 #4040E7 at work across the surfaces designers actually ship.
:root {
--color-base: #4040E7;
--color-base-rgb: 64 64 231;
--color-base-oklch: oklch(49.5% 0.242 273.1);
--color-50: #F1F1FE;
--color-100: #DADAFB;
--color-200: #B6B6F6;
--color-300: #8585EA;
--color-400: #5858DA;
--color-500: #3636BF;
--color-600: #303091;
--color-700: #282867;
--color-800: #1E1E43;
--color-900: #141429;
--color-on-base: #FFFFFF;
}
// tailwind.config.js
colors: {
han-purple: {
50: '#F1F1FE',
100: '#DADAFB',
200: '#B6B6F6',
300: '#8585EA',
400: '#5858DA',
500: '#3636BF',
600: '#303091',
700: '#282867',
800: '#1E1E43',
900: '#141429',
},
}
$base: #4040E7; $base-ink: #FFFFFF; $base-50: #F1F1FE; $base-100: #DADAFB; $base-200: #B6B6F6; $base-300: #8585EA; $base-400: #5858DA; $base-500: #3636BF; $base-600: #303091; $base-700: #282867; $base-800: #1E1E43; $base-900: #141429; $base-hover: #1A1AD3; $base-subtle: #CCCCF2;
{
"color": {
"base": {
"value": "#4040E7",
"type": "color"
},
"onBase": {
"value": "#FFFFFF",
"type": "color"
},
"scale": {
"50": {
"value": "#F1F1FE",
"type": "color"
},
"100": {
"value": "#DADAFB",
"type": "color"
},
"200": {
"value": "#B6B6F6",
"type": "color"
},
"300": {
"value": "#8585EA",
"type": "color"
},
"400": {
"value": "#5858DA",
"type": "color"
},
"500": {
"value": "#3636BF",
"type": "color"
},
"600": {
"value": "#303091",
"type": "color"
},
"700": {
"value": "#282867",
"type": "color"
},
"800": {
"value": "#1E1E43",
"type": "color"
},
"900": {
"value": "#141429",
"type": "color"
}
}
}
}