#2840B8 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 #2840B8 works with other colors. Named schemes with #2840B8 in its natural role, and a note on why the supporting colors balance it.
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 opens this coastal palette with sea-glass and warm sand alongside it, grounded by driftwood grey and a deep-navy anchor.
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.
Cobalt Blue glows at the center of this sunset palette, joined by coral and gold, deepened by a plum anchor and cooled with cream.
How #2840B8 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 #2840B8 at work across the surfaces designers actually ship.
:root {
--color-base: #2840B8;
--color-base-rgb: 40 64 184;
--color-base-oklch: oklch(43.7% 0.190 268.2);
--color-50: #F2F4FD;
--color-100: #DDE1F8;
--color-200: #BCC5F0;
--color-300: #8E9CE1;
--color-400: #6476CE;
--color-500: #4255B3;
--color-600: #394689;
--color-700: #2E3661;
--color-800: #212640;
--color-900: #161927;
--color-on-base: #FFFFFF;
}
// tailwind.config.js
colors: {
cobalt-blue: {
50: '#F2F4FD',
100: '#DDE1F8',
200: '#BCC5F0',
300: '#8E9CE1',
400: '#6476CE',
500: '#4255B3',
600: '#394689',
700: '#2E3661',
800: '#212640',
900: '#161927',
},
}
$base: #2840B8; $base-ink: #FFFFFF; $base-50: #F2F4FD; $base-100: #DDE1F8; $base-200: #BCC5F0; $base-300: #8E9CE1; $base-400: #6476CE; $base-500: #4255B3; $base-600: #394689; $base-700: #2E3661; $base-800: #212640; $base-900: #161927; $base-hover: #203393; $base-subtle: #BFC6E9;
{
"color": {
"base": {
"value": "#2840B8",
"type": "color"
},
"onBase": {
"value": "#FFFFFF",
"type": "color"
},
"scale": {
"50": {
"value": "#F2F4FD",
"type": "color"
},
"100": {
"value": "#DDE1F8",
"type": "color"
},
"200": {
"value": "#BCC5F0",
"type": "color"
},
"300": {
"value": "#8E9CE1",
"type": "color"
},
"400": {
"value": "#6476CE",
"type": "color"
},
"500": {
"value": "#4255B3",
"type": "color"
},
"600": {
"value": "#394689",
"type": "color"
},
"700": {
"value": "#2E3661",
"type": "color"
},
"800": {
"value": "#212640",
"type": "color"
},
"900": {
"value": "#161927",
"type": "color"
}
}
}
}