Skip to main content

Midnight

#021531

Midnight is a cool dark color with the hex code #021531. This vibrant hue can be represented as RGB 2, 21, 49 in digital design or CMYK 96%, 57%, 0%, 81% for print applications. Find matching Pantone color.

Midnight color values

HEX
#021531
RGB
2, 21, 49
HSL
216°, 92%, 10%
CMYK
96, 57, 0, 81

About this color

Midnight sits at 216° on the color wheel with 92% saturation and 10% lightness, placing it in the blue segment of the spectrum. With saturation at 92%, this is a high-chroma color: the kind that anchors palettes and demands considered placement. Near-black lightness makes it read as a deep, absorptive tone — color is implied more than seen.

In digital environments, Midnight is rendered as rgb(2, 21, 49), where the blue channel is highest at 49, anchoring the color in the cool register. High saturation combined with low lightness creates deep, jewel-toned results — useful for premium UI elements, hover states, and focused interaction areas.

For print, Midnight translates to a CMYK breakdown of 96C 57M 0Y 81K. The dominant black channel (81%) does most of the tonal work here — cyan, magenta, and yellow contribute minimally, so the printed result will be a deep, near-neutral tone that reads differently from its screen equivalent. No brands in the brandkit.pro library currently specify this exact hex as a named brand color.

How to use Midnight

CSS Variable

:root {
  --brand-primary: #021531;
  --brand-primary-rgb: 2, 21, 49;
}

Define as a CSS custom property for consistent theming across your site.

Tailwind Config

colors: {
  brand: '#021531',
}

Add to your Tailwind config to use classes like bg-brand.

Print Design (CMYK)

C: 96%
M: 57%
Y: 0%
K: 81%

Use these CMYK values in Adobe Illustrator, InDesign, or print specifications.

RGB for Screens

rgb(2, 21, 49)
rgba(2, 21, 49, 0.8)

Use RGB notation for compatibility or add alpha channel for transparency.

Frequently asked questions

What color is #021531?
#021531 is Midnight, a cool dark color with RGB values of 2, 21, 49. It has a hue of 216°, 92% saturation, and 10% lightness in the HSL color space.
What is the RGB value of #021531?
The RGB color code for #021531 is rgb(2, 21, 49). This means it contains 2 red, 21 green, and 49 blue in the RGB color model.
Is Midnight a warm or cool color?
Midnight (#021531) is a cool color with a hue between 120-300° on the color wheel.
How do I use #021531 in CSS?
You can use #021531 in CSS with: background-color: #021531; or color: #021531; or as an RGB value: rgb(2, 21, 49). For print design, use CMYK: 96%, 57%, 0%, 81%.