#170274 is a deep, cool violet. On the Color Lab it reads clean and engineered, quietly premium. It is too dark to lead as a primary accent and sits well as a supporting tone.
Not just a swatch — here's how #170274 works with other colors. Named schemes with #170274 in its natural role, and a note on why the supporting colors balance it.
Midnight 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.
Midnight 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 Midnight Blue.
Midnight Blue opens this coastal palette with sea-glass and warm sand alongside it, grounded by driftwood grey and a deep-navy anchor.
Midnight 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.
Midnight 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 Midnight Blue carrying the quiet middle.
How #170274 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 #170274 at work across the surfaces designers actually ship.
:root {
--color-base: #170274;
--color-base-rgb: 23 2 116;
--color-base-oklch: oklch(26.6% 0.167 273.4);
--color-50: #F3F0FE;
--color-100: #DFD8FD;
--color-200: #BEB1FC;
--color-300: #9079F6;
--color-400: #6649E9;
--color-500: #4425D0;
--color-600: #3B259D;
--color-700: #2F206F;
--color-800: #221948;
--color-900: #16112C;
--color-on-base: #FFFFFF;
}
// tailwind.config.js
colors: {
midnight-blue: {
50: '#F3F0FE',
100: '#DFD8FD',
200: '#BEB1FC',
300: '#9079F6',
400: '#6649E9',
500: '#4425D0',
600: '#3B259D',
700: '#2F206F',
800: '#221948',
900: '#16112C',
},
}
$base: #170274; $base-ink: #FFFFFF; $base-50: #F3F0FE; $base-100: #DFD8FD; $base-200: #BEB1FC; $base-300: #9079F6; $base-400: #6649E9; $base-500: #4425D0; $base-600: #3B259D; $base-700: #2F206F; $base-800: #221948; $base-900: #16112C; $base-hover: #12015C; $base-subtle: #A999F0;
{
"color": {
"base": {
"value": "#170274",
"type": "color"
},
"onBase": {
"value": "#FFFFFF",
"type": "color"
},
"scale": {
"50": {
"value": "#F3F0FE",
"type": "color"
},
"100": {
"value": "#DFD8FD",
"type": "color"
},
"200": {
"value": "#BEB1FC",
"type": "color"
},
"300": {
"value": "#9079F6",
"type": "color"
},
"400": {
"value": "#6649E9",
"type": "color"
},
"500": {
"value": "#4425D0",
"type": "color"
},
"600": {
"value": "#3B259D",
"type": "color"
},
"700": {
"value": "#2F206F",
"type": "color"
},
"800": {
"value": "#221948",
"type": "color"
},
"900": {
"value": "#16112C",
"type": "color"
}
}
}
}