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

8%50
24%100
40%200
56%300
80%400
100%500your color
80%600
56%700
40%800
24%900
8%950
Each step is the base composited over white or black at the opacity shown.#191970

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.

Derived from #191970
SuggestedProtanopiaDeuteranopiaTritanopia
success43.741.214.0
warning40.446.439.8
error10.216.839.1
discovery4.14.35.4
info11.610.49.6
neutral16.317.814.0
CIEDE2000 distance from the base under each simulation. The lowest of the three decides, and a dot marks the ones that land under 11.

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.

CSS
: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;
}
SCSS
$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;
JavaScript
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',
};
JSON
{
  "color": {
    "50": "#ededf4",
    "100": "#c8c8dd",
    "200": "#a3a3c6",
    "300": "#7e7eaf",
    "400": "#47478d",
    "500": "#191970",
    "600": "#14145a",
    "700": "#0e0e3f",
    "800": "#0a0a2d",
    "900": "#06061b",
    "950": "#020209"
  }
}
Figma Variables
{
  "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"
  }
}

Open Midnight Blue in the generatorHow the scale is built