Midnight Blue — 11-step color scale
Midnight Blue (#191970) sits at 500, untouched. Every other step is Midnight Blue composited over white or black at a decreasing opacity, so the whole ramp stays in one hue family instead of drifting toward another color at the ends.
Open Midnight Blue in the generator
For text that needs to pass AA on white, 400, 500, 600, 700, 800, 900, 950 clear the 4.5:1 line. On a dark surface, 50, 100, 200, 300 do.
Semantic colors from Midnight Blue
Success, warning, error and the rest are derived from Midnight Blue itself, then checked so they stay distinguishable from the base — and from each other — under the three types of color blindness. The distance below is CIEDE2000 after each simulation.
| Suggested | Protanopia | Deuteranopia | Tritanopia |
|---|---|---|---|
| success | 43.7 | 41.2 | 14.0 |
| warning | 40.4 | 46.4 | 39.8 |
| error | 10.2 | 16.8 | 39.1 |
| discovery | 4.1 | 4.3 | 5.4 |
| info | 11.6 | 10.4 | 9.6 |
| neutral | 16.3 | 17.8 | 14.0 |
The discovery suggestion starts out colliding with Midnight Blue under Protanopia — ΔE₀₀ 4.1, below the 11 threshold — so the engine shifts its hue within the discovery family until the pair pulls apart again.
Export Midnight Blue
The same five formats the generator produces, for this scale. Copy any block, or open the tool to tweak the ramp first.
:root {
--color-color-50: #ededf4;
--color-color-100: #c8c8dd;
--color-color-200: #a3a3c6;
--color-color-300: #7e7eaf;
--color-color-400: #47478d;
--color-color-500: #191970;
--color-color-600: #14145a;
--color-color-700: #0e0e3f;
--color-color-800: #0a0a2d;
--color-color-900: #06061b;
--color-color-950: #020209;
}$color-color-50: #ededf4;
$color-color-100: #c8c8dd;
$color-color-200: #a3a3c6;
$color-color-300: #7e7eaf;
$color-color-400: #47478d;
$color-color-500: #191970;
$color-color-600: #14145a;
$color-color-700: #0e0e3f;
$color-color-800: #0a0a2d;
$color-color-900: #06061b;
$color-color-950: #020209;export const color = {
50: '#ededf4',
100: '#c8c8dd',
200: '#a3a3c6',
300: '#7e7eaf',
400: '#47478d',
500: '#191970',
600: '#14145a',
700: '#0e0e3f',
800: '#0a0a2d',
900: '#06061b',
950: '#020209',
};{
"color": {
"50": "#ededf4",
"100": "#c8c8dd",
"200": "#a3a3c6",
"300": "#7e7eaf",
"400": "#47478d",
"500": "#191970",
"600": "#14145a",
"700": "#0e0e3f",
"800": "#0a0a2d",
"900": "#06061b",
"950": "#020209"
}
}{
"color": {
"50": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.9294117647058824,
0.9294117647058824,
0.9568627450980393
],
"alpha": 1,
"hex": "#EDEDF4"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:1",
"com.figma.isOverride": true
}
},
"100": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.7843137254901961,
0.7843137254901961,
0.8666666666666667
],
"alpha": 1,
"hex": "#C8C8DD"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:2",
"com.figma.isOverride": true
}
},
"200": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.6392156862745098,
0.6392156862745098,
0.7764705882352941
],
"alpha": 1,
"hex": "#A3A3C6"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:3",
"com.figma.isOverride": true
}
},
"300": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.49411764705882355,
0.49411764705882355,
0.6862745098039216
],
"alpha": 1,
"hex": "#7E7EAF"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:4",
"com.figma.isOverride": true
}
},
"400": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.2784313725490196,
0.2784313725490196,
0.5529411764705883
],
"alpha": 1,
"hex": "#47478D"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:5",
"com.figma.isOverride": true
}
},
"500": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.09803921568627451,
0.09803921568627451,
0.4392156862745098
],
"alpha": 1,
"hex": "#191970"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:6",
"com.figma.isOverride": true
}
},
"600": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.0784313725490196,
0.0784313725490196,
0.35294117647058826
],
"alpha": 1,
"hex": "#14145A"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:7",
"com.figma.isOverride": true
}
},
"700": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.054901960784313725,
0.054901960784313725,
0.24705882352941178
],
"alpha": 1,
"hex": "#0E0E3F"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:8",
"com.figma.isOverride": true
}
},
"800": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.0392156862745098,
0.0392156862745098,
0.17647058823529413
],
"alpha": 1,
"hex": "#0A0A2D"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:9",
"com.figma.isOverride": true
}
},
"900": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.023529411764705882,
0.023529411764705882,
0.10588235294117647
],
"alpha": 1,
"hex": "#06061B"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:10",
"com.figma.isOverride": true
}
},
"950": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0.00784313725490196,
0.00784313725490196,
0.03529411764705882
],
"alpha": 1,
"hex": "#020209"
},
"$extensions": {
"com.figma.variableId": "VariableID:1:11",
"com.figma.isOverride": true
}
}
},
"$extensions": {
"com.figma.modeName": "Value"
}
}