#0042DB
A medium, vivid blue closely aligning with Mediumslateblue.
About #0042DB
At its core, #0042DB is a medium and vivid hue. If you're using CSS, you might find it aligns closely with Mediumslateblue. This translates to an RGB value of rgb(0, 66, 219).
While screens use RGB, printing presses rely on Cyan, Magenta, Yellow, and Key (black). The color uses 100% Cyan, 70% Magenta, 0% Yellow, and 14% Black. The HSL representation is 221.9° hue, 100.0% saturation, and 42.9% lightness.
Contrast ratios determine whether this color is safe for typography. To prevent eye strain, #FFFFFF text pairs best with this hex code. Strict adherence to these ratios protects visually impaired users from unreadable interfaces.
Color Space Conversions
HEX#0042DB
RGB0, 66, 219
HSL221.9°, 100.0%, 42.9%
CMYK100%, 70%, 0%, 14%
HSV221.9°, 100.0%, 85.9%
LAB36.0, 44.4, -81.3
XYZ14.7, 9.0, 68.0
Decimal17115
Color Harmonies
Tints, Shades & Tones
Tints (Adding White)
Shades (Adding Black)
WCAG Contrast Accessibility
7.49:1
Text on #FFFFFF
AAA
2.80:1
Text on #000000
FAIL
7.16:1
Text on #F8FAFC
AAA
2.38:1
Text on #0F172A
FAIL
CSS Implementation
.bg-color {
background-color: #0042DB;
}
.text-color {
color: #0042DB;
}
.border-color {
border: 2px solid #0042DB;
}