Color
#2E40AD
Dark vivid cool violet. Nearest reference color: Denim blue.
RGB
0–255CMYK
0–100%RGB describes how #2E40AD is represented with light on digital screens. This color combines red 46, green 64 and blue 173.
CMYK describes the same color using the four components commonly used in printing: cyan 73.41%, magenta 63.01%, yellow 0% and black 32.16%.
HSL values
In the HSL color model, #2E40AD has a hue of 231.5°, 57.99% saturation and 42.94% lightness. The sliders below show where this color sits across each of these three dimensions.
Color insight
#2E40AD is a dark, cool violet with vivid chroma.
- Temperature
- Cool
- Lightness
- Dark
- Chroma
- Vivid
Color formats
Copy #2E40AD in a format ready to use in CSS, design tools or other applications.
#2E40AD
rgb(46, 64, 173)
hsl(231.5 57.99% 42.94%)
oklch(0.42956 0.174027 270.0363)
--color: #2E40AD;
Tints of #2E40AD
Tints are lighter variations of #2E40AD. They keep the character of the original color while moving progressively toward a lighter appearance.
Shades of #2E40AD
Shades are darker variations of #2E40AD. Moving toward black increases visual depth while preserving the underlying hue of the color.
Tones of #2E40AD
Tones reduce the chroma of #2E40AD, producing quieter and more muted variations without simply making the color lighter or darker.
Tonal range of #2E40AD
A continuous light-to-dark scale places #2E40AD between its lighter tints and deeper shades.
CSS color scale
Use this tonal range as reusable CSS custom properties.
:root {
--color-100: #E8EEFF;
--color-200: #ADC2FF;
--color-300: #7593FF;
--color-400: #4E69D9;
--color-500: #2E40AD;
--color-600: #1E2794;
--color-700: #12057B;
--color-800: #07004E;
--color-900: #020023;
}
Colors that go with #2E40AD
Color harmonies for #2E40AD are generated by rotating its hue in the OKLCH color space while preserving its lightness and chroma. This creates classic complementary, analogous, triadic and other hue relationships with more consistent perceptual balance.
Complementary
Opposite on the color wheel, creating the strongest direct hue contrast.
Triadic
Three evenly spaced hues that create a broader, balanced color relationship.
Split complementary
Two hues around the complementary color, providing contrast with more variation.
CSS gradients with #2E40AD
These gradients show how #2E40AD moves toward white, black and its complementary color. Each gradient includes ready-to-use CSS that can be copied directly into a project.
Toward white
A light gradient that moves from the original color toward white.
background: linear-gradient(90deg, #2E40AD, #5A72C5, #8EA1DA, #C5CFEE, #FFFFFF);
Toward black
A dark gradient that moves from the original color toward black.
background: linear-gradient(90deg, #2E40AD, #1C2875, #0B1341, #010313, #000000);
Text contrast and accessibility
Contrast determines how clearly text can be distinguished from #2E40AD. The values below compare white and black text using WCAG contrast ratios.
Recommended text color: #FFFFFF . Relative luminance: 0.0726 .
Accessible CSS
Use the recommended text color with #2E40AD as the background.
background-color: #2E40AD;
color: #FFFFFF;
Using #2E40AD in design
See how #2E40AD works in a simple interface. The examples below use the color as a background, accent and interface element, with text chosen from its accessibility result.
#2E40AD used as a full background with its recommended text color.
Use #2E40AD to emphasize selected interface elements without filling the entire surface.
Colors similar to #2E40AD
These nearby colors are generated from perceptual variations of #2E40AD, including changes in lightness, chroma and hue.
Color vision simulation
The simulations below show mathematical approximations of how #2E40AD may shift under three forms of color vision deficiency. They are simulations, not a diagnosis or an exact representation of any individual person's vision.
Simulation based on the model by Machado, Oliveira and Fernandes (2009), published in IEEE Transactions on Visualization and Computer Graphics. DOI: 10.1109/TVCG.2009.113.
Advanced color values
Beyond RGB, CMYK and HSL, #2E40AD can also be represented in perceptual and device-independent color spaces used in color science and modern design tools.
XYZ
- X
- 10.5004
- Y
- 7.2637
- Z
- 40.3757
CIELAB
- L*
- 32.3998
- a*
- 31.2959
- b*
- -60.2388
OKLab
- L
- 0.42956
- a
- 0.00011
- b
- -0.174027
OKLCH
- L
- 0.42956
- C
- 0.174027
- H
- 270.0363°