#331D66
A dark, moderate purple closely aligning with Midnightblue.
About #331D66
Visually, #331D66 is defined as a moderate purple. Its closest recognized web color is Midnightblue. This translates to an RGB value of rgb(51, 29, 102).
When sending designs containing this color to a printer, the CMYK values come into play. Its ink density profile breaks down to 50% cyan, 72% magenta, 0% yellow, and 60% black. With a hue angle of 258.1 degrees, it sits comfortably in the purple spectrum.
Web Content Accessibility Guidelines (WCAG) dictate how we should use this color. 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#331D66
RGB51, 29, 102
HSL258.1°, 55.7%, 25.7%
CMYK50%, 72%, 0%, 60%
HSV258.1°, 71.6%, 40.0%
LAB18.1, 29.8, -39.3
XYZ4.2, 2.5, 12.8
Decimal3349862
Color Harmonies
Tints, Shades & Tones
Tints (Adding White)
Shades (Adding Black)
WCAG Contrast Accessibility
13.92:1
Text on #FFFFFF
AAA
1.51:1
Text on #000000
FAIL
13.31:1
Text on #F8FAFC
AAA
1.28:1
Text on #0F172A
FAIL
CSS Implementation
.bg-color {
background-color: #331D66;
}
.text-color {
color: #331D66;
}
.border-color {
border: 2px solid #331D66;
}