#402ECC 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 #402ECC works with other colors. Named schemes with #402ECC in its natural role, and a note on why the supporting colors balance it.
Cerulean is the vivid signal in this product UI — on a near-black surface with cool white, a slate grey and a lighter tint of Cerulean.
Cerulean sits between cream and a deep berry here, softened by a blush accent and grounded by charcoal.
Cerulean 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 Cerulean carrying the quiet middle.
Cerulean opens this coastal palette with sea-glass and warm sand alongside it, grounded by driftwood grey and a deep-navy anchor.
Cerulean glows at the center of this sunset palette, joined by coral and gold, deepened by a plum anchor and cooled with cream.
How #402ECC 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 #402ECC at work across the surfaces designers actually ship.
:root {
--color-base: #402ECC;
--color-base-rgb: 64 46 204;
--color-base-oklch: oklch(44.4% 0.227 276.9);
--color-50: #F3F2FD;
--color-100: #E0DDF8;
--color-200: #C3BDF0;
--color-300: #988FE0;
--color-400: #7165CD;
--color-500: #5043B2;
--color-600: #433A88;
--color-700: #342E61;
--color-800: #252140;
--color-900: #181627;
--color-on-base: #FFFFFF;
}
// tailwind.config.js
colors: {
cerulean: {
50: '#F3F2FD',
100: '#E0DDF8',
200: '#C3BDF0',
300: '#988FE0',
400: '#7165CD',
500: '#5043B2',
600: '#433A88',
700: '#342E61',
800: '#252140',
900: '#181627',
},
}
$base: #402ECC; $base-ink: #FFFFFF; $base-50: #F3F2FD; $base-100: #E0DDF8; $base-200: #C3BDF0; $base-300: #988FE0; $base-400: #7165CD; $base-500: #5043B2; $base-600: #433A88; $base-700: #342E61; $base-800: #252140; $base-900: #181627; $base-hover: #3425A3; $base-subtle: #CAC5EB;
{
"color": {
"base": {
"value": "#402ECC",
"type": "color"
},
"onBase": {
"value": "#FFFFFF",
"type": "color"
},
"scale": {
"50": {
"value": "#F3F2FD",
"type": "color"
},
"100": {
"value": "#E0DDF8",
"type": "color"
},
"200": {
"value": "#C3BDF0",
"type": "color"
},
"300": {
"value": "#988FE0",
"type": "color"
},
"400": {
"value": "#7165CD",
"type": "color"
},
"500": {
"value": "#5043B2",
"type": "color"
},
"600": {
"value": "#433A88",
"type": "color"
},
"700": {
"value": "#342E61",
"type": "color"
},
"800": {
"value": "#252140",
"type": "color"
},
"900": {
"value": "#181627",
"type": "color"
}
}
}
}