#334CA6 is a mid-toned, cool violet. On the Color Lab it reads clean and engineered, quietly premium. It carries a legible label as a UI accent and sits well as a supporting tone.
Not just a swatch — here's how #334CA6 works with other colors. Named schemes with #334CA6 in its natural role, and a note on why the supporting colors balance it.
Cobalt Blue opens this coastal palette with sea-glass and warm sand alongside it, grounded by driftwood grey and a deep-navy anchor.
Cobalt 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 Cobalt Blue.
Cobalt 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.
Cobalt Blue sits between cream and a deep berry here, softened by a blush accent and grounded by charcoal.
Cobalt 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 Cobalt Blue carrying the quiet middle.
How #334CA6 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 #334CA6 at work across the surfaces designers actually ship.
:root {
--color-base: #334CA6;
--color-base-rgb: 51 76 166;
--color-base-oklch: oklch(45.0% 0.148 268.2);
--color-50: #F3F5FC;
--color-100: #DFE4F6;
--color-200: #C1CAEC;
--color-300: #95A4DA;
--color-400: #6D80C5;
--color-500: #4C60A9;
--color-600: #404E82;
--color-700: #323B5D;
--color-800: #24293D;
--color-900: #171B26;
--color-on-base: #FFFFFF;
}
// tailwind.config.js
colors: {
cobalt-blue: {
50: '#F3F5FC',
100: '#DFE4F6',
200: '#C1CAEC',
300: '#95A4DA',
400: '#6D80C5',
500: '#4C60A9',
600: '#404E82',
700: '#323B5D',
800: '#24293D',
900: '#171B26',
},
}
$base: #334CA6; $base-ink: #FFFFFF; $base-50: #F3F5FC; $base-100: #DFE4F6; $base-200: #C1CAEC; $base-300: #95A4DA; $base-400: #6D80C5; $base-500: #4C60A9; $base-600: #404E82; $base-700: #323B5D; $base-800: #24293D; $base-900: #171B26; $base-hover: #293D86; $base-subtle: #C2C9E5;
{
"color": {
"base": {
"value": "#334CA6",
"type": "color"
},
"onBase": {
"value": "#FFFFFF",
"type": "color"
},
"scale": {
"50": {
"value": "#F3F5FC",
"type": "color"
},
"100": {
"value": "#DFE4F6",
"type": "color"
},
"200": {
"value": "#C1CAEC",
"type": "color"
},
"300": {
"value": "#95A4DA",
"type": "color"
},
"400": {
"value": "#6D80C5",
"type": "color"
},
"500": {
"value": "#4C60A9",
"type": "color"
},
"600": {
"value": "#404E82",
"type": "color"
},
"700": {
"value": "#323B5D",
"type": "color"
},
"800": {
"value": "#24293D",
"type": "color"
},
"900": {
"value": "#171B26",
"type": "color"
}
}
}
}