#0F0042

A very dark, vivid blue closely aligning with Midnightblue.

About #0F0042

The hex code #0F0042 represents a beautifully specific shade of blue. Its closest recognized web color is Midnightblue. Its digital footprint relies on 15 parts red, 0 parts green, and 66 parts blue light.

While screens use RGB, printing presses rely on Cyan, Magenta, Yellow, and Key (black). The color uses 77% Cyan, 100% Magenta, 0% Yellow, and 74% Black. The HSL representation is 253.6° hue, 100.0% saturation, and 12.9% lightness.

From a UX and accessibility standpoint, contrast is paramount. Because it is a very dark color, it is generally recommended to use #FFFFFF text. Strict adherence to these ratios protects visually impaired users from unreadable interfaces.

Color Space Conversions

HEX#0F0042
RGB15, 0, 66
HSL253.6°, 100.0%, 12.9%
CMYK77%, 100%, 0%, 74%
HSV253.6°, 100.0%, 25.9%
LAB4.5, 27.6, -37.2
XYZ1.2, 0.5, 5.2
Decimal983106

Color Harmonies

Complementary

Analogous

Triadic

Tints, Shades & Tones

Tints (Adding White)

Shades (Adding Black)

WCAG Contrast Accessibility

19.11:1
Text on #FFFFFF
AAA
1.10:1
Text on #000000
FAIL
18.26:1
Text on #F8FAFC
AAA
1.07:1
Text on #0F172A
FAIL

CSS Implementation

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

Similar Colors

Midnightblue
#191970