Violet Navy color code: #2E2C5F
A navy with the red channel raised just enough to tilt it toward purple.
Violet Navy · rgb(46, 44, 95)
Every format for Violet Navy
- HEX
- #2E2C5F
- RGB
- rgb(46, 44, 95)
- HSL
- hsl(242, 37%, 27%)
- HSV
- 242°, 54%, 37%
- CMYK
- 52%, 54%, 0%, 63%
- Lightness
- 27% · dark
Hue sits at 242°, which makes Violet Navy a true blue navy, with 37% saturation. In the Purple Navy family it reads as a dark option.
Text contrast on Violet Navy
Contrast ratios are calculated using the WCAG 2.1 relative luminance formula. Normal body text needs 4.5:1 and large text needs 3:1 to pass AA.
White text on Violet Navy
The quick brown fox jumps over the lazy dog.
12.79:1 — AAA for normal textBlack text on Violet Navy
The quick brown fox jumps over the lazy dog.
1.64:1 — below AA, decorative use onlyViolet Navy text on white
The quick brown fox jumps over the lazy dog.
12.79:1 — AAA for normal textAccessibility notes
- Pair Violet Navy with white text for the strongest reading experience: that combination gives 12.79:1.
- Used as a text colour on white, it clears the 3:1 bar for large headings.
- Never rely on Violet Navy alone to communicate state. Add an icon, label or underline so the meaning survives for colour-blind users and in greyscale printing.
- When placing text over a photograph tinted with Violet Navy, add a solid overlay first. Contrast measured against a flat colour does not hold over varying imagery.
Using Violet Navy in CSS and HTML
CSS example
:root {
--violet-navy: #2E2C5F;
}
.panel {
background-color: var(--violet-navy);
color: #FFFFFF;
border: 1px solid #2E2C5F;
}HTML example
<div style="background-color: #2E2C5F; color: #FFFFFF; padding: 1rem;">
Violet Navy #2E2C5F
</div>Common uses
- Page and section backgrounds in dark interfaces, where it holds white text cleanly.
- Purple Navy palettes for brand systems that need a dependable cool anchor.
- Print work where a deep blue is preferred to black, using the CMYK build 52%, 54%, 0%, 63%.
- Data visualisation, as one step in a lightness-based navy scale.
Design recommendations
- Build lighter and darker variants by changing only the lightness in
hsl(242, 37%, 27%). Keeping hue fixed is what makes a scale look intentional. - Give Violet Navy at least one warm counterweight. A cool palette with no warm accent tends to read as cold rather than calm.
- Saturation is moderate, which makes this shade forgiving across large areas and long reading sessions.
Complementary and matching colors
Each of these is derived from the hue, saturation and lightness of Violet Navy. Click a swatch to copy it.
Similar navy shades
Continue exploring
FAQs about Violet Navy
What is the Violet Navy color code?
The Violet Navy color code is #2E2C5F in HEX, rgb(46, 44, 95) in RGB and hsl(242, 37%, 27%) in HSL.
What is the RGB value of Violet Navy?
Violet Navy is rgb(46, 44, 95), meaning 46 units of red, 44 of green and 95 of blue on the 0 to 255 scale.
What is the CMYK value of Violet Navy?
In CMYK, Violet Navy converts to approximately 52%, 54%, 0%, 63%. Printed output will look slightly less saturated than the screen preview because CMYK covers a narrower gamut.
Does white text work on Violet Navy?
White text on Violet Navy gives a contrast ratio of 12.79:1, which is AAA for normal text.
Does black text work on Violet Navy?
Black text on Violet Navy gives a contrast ratio of 1.64:1, which is below AA, decorative use only.
Which colors go with Violet Navy?
Its direct complement is #9A9D48, and the warm accent #A5CB43 works well for calls to action. For a quieter scheme, pair it with the analogous blues listed above.
Is Violet Navy a light or dark navy?
At 27% lightness, Violet Navy is classed as a dark navy in this collection.