#0F0F42

A very dark, moderate blue closely aligning with Midnightblue.

About #0F0F42

The precise color #0F0F42 is an excellent choice for modern design projects. It is closely associated with the named CSS color Midnightblue. Its digital footprint relies on 15 parts red, 15 parts green, and 66 parts blue light.

If you are designing for print, the four-color process is what matters most. This specific hue requires a mix of 77% C, 77% M, 0% Y, and 74% K. With a hue angle of 240.0 degrees, it sits comfortably in the blue spectrum.

When using this color as a background, text legibility must be considered. Mathematical luminance calculations suggest that #FFFFFF text provides the most optimal reading experience. Be sure to check our contrast matrix below to see exactly how it performs against common backgrounds.

Color Space Conversions

HEX#0F0F42
RGB15, 15, 66
HSL240.0°, 63.0%, 15.9%
CMYK77%, 77%, 0%, 74%
HSV240.0°, 77.3%, 25.9%
LAB7.6, 19.6, -32.2
XYZ1.4, 0.8, 5.2
Decimal986946

Color Harmonies

Complementary

Analogous

Triadic

Tints, Shades & Tones

Tints (Adding White)

Shades (Adding Black)

WCAG Contrast Accessibility

17.99:1
Text on #FFFFFF
AAA
1.17:1
Text on #000000
FAIL
17.19:1
Text on #F8FAFC
AAA
1.01:1
Text on #0F172A
FAIL

CSS Implementation

.bg-color { background-color: #0F0F42; }
.text-color { color: #0F0F42; }
.border-color { border: 2px solid #0F0F42; }

Similar Colors

Midnightblue
#191970