#042678
A dark, vivid blue closely aligning with Midnightblue.
About #042678
At its core, #042678 is a dark and vivid hue. Its closest recognized web color is Midnightblue. To achieve this exact tint on a monitor, you would use an RGB mix of 4, 38, and 120.
For print applications, it's crucial to understand its CMYK makeup. The color uses 97% Cyan, 68% Magenta, 0% Yellow, and 53% Black. This makes it a relatively dark color when applied to physical surfaces.
Ensuring your text is legible against this background is a key part of web design. To prevent eye strain, #FFFFFF text pairs best with this hex code. Be sure to check our contrast matrix below to see exactly how it performs against common backgrounds.
Color Space Conversions
HEX#042678
RGB4, 38, 120
HSL222.4°, 93.5%, 24.3%
CMYK97%, 68%, 0%, 53%
HSV222.4°, 96.7%, 47.1%
LAB19.1, 24.6, -49.4
XYZ4.1, 2.8, 18.1
Decimal271992
Color Harmonies
Tints, Shades & Tones
Tints (Adding White)
Shades (Adding Black)
WCAG Contrast Accessibility
13.52:1
Text on #FFFFFF
AAA
1.55:1
Text on #000000
FAIL
12.92:1
Text on #F8FAFC
AAA
1.32:1
Text on #0F172A
FAIL
CSS Implementation
.bg-color {
background-color: #042678;
}
.text-color {
color: #042678;
}
.border-color {
border: 2px solid #042678;
}