Skip to main content

Midnight Blue

#042E62

Midnight Blue is a cool dark color with the hex code #042E62. This vibrant hue can be represented as RGB 4, 46, 98 in digital design or CMYK 96%, 53%, 0%, 62% for print applications. Find matching Pantone color.

Midnight Blue color values

HEX
#042E62
RGB
4, 46, 98
HSL
213°, 92%, 20%
CMYK
96, 53, 0, 62

About this color

Midnight Blue sits at 213° on the color wheel with 92% saturation and 20% 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. The lower lightness gives it weight and depth, lending gravity to any palette it enters.

In digital environments, Midnight Blue is rendered as rgb(4, 46, 98), where the blue channel is highest at 98, 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 Blue translates to a CMYK breakdown of 96C 53M 0Y 62K. A substantial black component (62%) anchors this color in print. The remaining ink channels supplement rather than drive the hue, which keeps the result stable across different paper stocks. No brands in the brandkit.pro library currently specify this exact hex as a named brand color.

How to use Midnight Blue

CSS Variable

:root {
  --brand-primary: #042E62;
  --brand-primary-rgb: 4, 46, 98;
}

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

Tailwind Config

colors: {
  brand: '#042E62',
}

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

Print Design (CMYK)

C: 96%
M: 53%
Y: 0%
K: 62%

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

RGB for Screens

rgb(4, 46, 98)
rgba(4, 46, 98, 0.8)

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

Frequently asked questions

What color is #042E62?
#042E62 is Midnight Blue, a cool dark color with RGB values of 4, 46, 98. It has a hue of 213°, 92% saturation, and 20% lightness in the HSL color space.
What is the RGB value of #042E62?
The RGB color code for #042E62 is rgb(4, 46, 98). This means it contains 4 red, 46 green, and 98 blue in the RGB color model.
Is Midnight Blue a warm or cool color?
Midnight Blue (#042E62) is a cool color with a hue between 120-300° on the color wheel.
How do I use #042E62 in CSS?
You can use #042E62 in CSS with: background-color: #042E62; or color: #042E62; or as an RGB value: rgb(4, 46, 98). For print design, use CMYK: 96%, 53%, 0%, 62%.