Midnight

#0C1A34

General Information about #0C1A34

The hexadecimal color code #0C1A34 represents a dark shade of blue, often referred to as "Midnight." It is composed of 4.7% red, 10.2% green, and 20.4% blue. In the RGB color space, it has values of R:12, G:26, B:52. In the CMYK color space, it is composed of 76.9% cyan, 50% magenta, 0% yellow, and 79.6% black. This color is often associated with sophistication, mystery, and calmness. Its dark nature makes it suitable for creating backgrounds or elements that need to recede visually, allowing other brighter colors to stand out. It's also frequently used to evoke a sense of night or tranquility in various designs.

The color #0C1A34, also known as Midnight, presents some accessibility challenges, especially concerning text legibility. Due to its dark nature with low luminance, pairing it with similarly dark colors can result in insufficient contrast, making it difficult for users, particularly those with visual impairments, to read text or distinguish elements. A contrast ratio of at least 4.5:1 is recommended for standard text and 3:1 for large text. To ensure optimal accessibility, consider using lighter text colors such as white, light gray, or pale yellow, and test the contrast ratio using online tools. Also, avoid using this color for crucial interactive elements without proper visual cues or labels.

Shades

Digital Color Formats

RGB
12 26 52
RGB12 26 52
Red
Green
Blue
HSL
219deg 62.5% 12.55%
21962.512.55HSL
Hue
Saturation
Lightness
HWB
219deg 4.71% 79.61%
2194.7179.61HWB
Hue
Whiteness
Blackness
hex#0C1A34
rgb12 26 52
hsl219deg 62.5% 12.55%
cmyk76.92% 50% 0% 79.61%
hwb219deg 4.71% 79.61%
xyz-d650.01 0.01 0.03
oklch0.2214 0.0546 261.68
oklab0.2214 -0.01 -0.05
CMYK
76.92% 50% 0% 79.61%
76.9250079.61CMYK
Cyan
Magenta
Yellow
Key
XYZ-d65
0.01 0.01 0.03
0.010.010.03XYZ
X
Y
Z
OKLCH
0.2214 0.0546 261.68
0.22140.0546261.68LCH
Lightness
Chroma
Hue
OKLAB
0.2214 -0.01 -0.05
0.2214-0.01-0.05LAB
Lightness
Green-Red
Blue-Yellow

Alternative colors

Applications

Complementary color

Buttons