#1D0F42

A very dark, moderate purple closely aligning with Midnightblue.

About #1D0F42

The precise color #1D0F42 is an excellent choice for modern design projects. It is closely associated with the named CSS color Midnightblue. To achieve this exact tint on a monitor, you would use an RGB mix of 29, 15, and 66.

When sending designs containing this color to a printer, the CMYK values come into play. To reproduce this shade on paper, a printer utilizes 56% cyan and 77% magenta inks. Always request a physical proof before doing a large print run with this exact code.

Ensuring your text is legible against this background is a key part of web design. The calculated luminance score dictates that #FFFFFF typography is the safest choice. You can view the detailed AAA and AA pass/fail metrics in the table below.

Color Space Conversions

HEX#1D0F42
RGB29, 15, 66
HSL256.5°, 63.0%, 15.9%
CMYK56%, 77%, 0%, 74%
HSV256.5°, 77.3%, 25.9%
LAB9.0, 22.2, -29.8
XYZ1.7, 1.0, 5.3
Decimal1904450

Color Harmonies

Complementary

Analogous

Triadic

Tints, Shades & Tones

Tints (Adding White)

Shades (Adding Black)

WCAG Contrast Accessibility

17.51:1
Text on #FFFFFF
AAA
1.20:1
Text on #000000
FAIL
16.74:1
Text on #F8FAFC
AAA
1.02:1
Text on #0F172A
FAIL

CSS Implementation

.bg-color { background-color: #1D0F42; }
.text-color { color: #1D0F42; }
.border-color { border: 2px solid #1D0F42; }

Similar Colors

Midnightblue
#191970