✓ Copied to clipboard
#2D158E (Dark Cool Violet) color swatch preview — Color From Pic.
#2D158E — Dark Cool Violet color swatch

Dark Cool Violet

#2D158E

📝 Color Information for #2D158E

The hexadecimal color code #2D158E represents a dark shade in the blue family. In the RGB color model, this color is composed of 45 red, 21 green, and 142 blue, which translates to approximately 18% red, 8% green, and 56% blue. This makes it a moderately saturated color with cool undertones that can evoke different emotional responses depending on its application. When analyzed in the HSL (Hue, Saturation, Lightness) color space, #2D158E has a hue of 252 degrees, a saturation level of 74%, and a lightness value of 32%. The hue angle of 252° places this color firmly in the blue spectrum. In the HSV/HSB color model, this translates to a hue of 252°, saturation of 85%, and brightness/value of 56%. For print applications using the CMYK color model, #2D158E would be reproduced using 68% cyan, 85% magenta, 0% yellow, and 44% black. The closest web-safe color is #330099, which may be useful for ensuring compatibility across older displays and systems. This color works well in various design contexts. With its medium lightness, it's versatile enough for both foreground elements and subtle backgrounds. The high saturation makes this color vibrant and attention-grabbing, ideal for call-to-action buttons, highlights, and accent elements. When pairing #2D158E with other colors, consider its complementary color at hue 72° for maximum contrast, or use analogous colors within 30° of its hue for harmonious combinations. The decimal representation of this color is 2954638, which can be useful in certain programming contexts.

🔢 Color Conversion Codes for #2D158E

Tailwind CSS
indigo-900
HEX
#2D158E
RGB
rgb(45, 21, 142)
RGB %
18%, 8%, 56%
HSL
hsl(252, 74%, 32%)
HSV
hsv(252, 85%, 56%)
CMYK
68%, 85%, 0%, 44%
Decimal
2954638
Web Safe
#330099

🎨 Color Schemes for #2D158E

Complementary
Analogous
Triadic
Split Complementary
Tetradic (Rectangle)

🔄 Alternatives to #2D158E

🌗 Shades and Tints of #2D158E

Shades (adding black)
Tints (adding white)

🎚️ Tones of #2D158E

Tones (adding gray / desaturating)

🌈 Hue Variations of #2D158E

Hue Variations (shifting the color spectrum)

👁️ Preview of #2D158E in Use

Text on #2D158E
This demonstrates text readability on the color background. (Click to edit)
#2D158E as Text
This shows the color used as text on white. (Click to edit)

👓 Color Blindness Simulation for #2D158E

Check how a color is perceived by people with different types of color blindness to create more accessible designs. Understanding color perception helps ensure your content is accessible to everyone.

📋 CSS Code for #2D158E

:root { --color-hex: #2D158E; --color-rgb: 45, 21, 142; --color-hsl: 252, 74%, 32%; } .bg-color { background-color: #2D158E; } .text-color { color: #2D158E; } .border-color { border-color: #2D158E; }

🛠️ Use #2D158E in Your Project

🎨
Build a Palette with #2D158E
Generate harmonious color schemes
⚖️
Check Contrast for #2D158E
WCAG accessibility testing
🌈
Create a Gradient with #2D158E
Beautiful CSS gradients

🔗 Related Colors to #2D158E

#15398E
Hue -30°
#151B8E
Hue -15°
#4C158E
Hue +15°
#6A158E
Hue +30°
#261278
85% L
#1F0F62
70% L
#170B47
50% L
#0E072C
30% L
#411ECC
46% L
#6849E4
59% L
#9C87ED
73% L
#CBC1F6
86% L

About Dark Cool Violet (#2D158E)

Dark Cool Violet is a medium, vibrant, cool blue color with a hue angle of 252°, saturation of 74%, and lightness of 32%. Its RGB value is (45, 21, 142) and its CMYK breakdown is C:68% M:85% Y:0% K:44%.

This is a Summer (Cool) color palette archetype. Trust, Loyalty, Wisdom, Confidence. Blue is considered beneficial to the mind and body.

Frequently Asked Questions About #2D158E

What is the HEX code for Dark Cool Violet? +

The HEX code for Dark Cool Violet is #2D158E. In CSS you can use it directly as color: #2D158E; or as a background: background-color: #2D158E;. The three-character shorthand is not available for this color since it cannot be reduced without changing the value. Use the full six-character hex for accurate reproduction in any web or design project.

What is the RGB value of #2D158E? +

The RGB value of #2D158E is rgb(45, 21, 142). This means the color contains 45 out of 255 parts red, 21 out of 255 parts green, and 142 out of 255 parts blue. Red is the moderate channel in this color mix. You can use the full RGB function in any CSS property: color: rgb(45, 21, 142);

What is the HSL value of #2D158E? +

The HSL value of #2D158E is hsl(252, 74%, 32%). The hue is 252°, placing it in the blue family on the color wheel. The saturation is 74%, making it vibrant. The lightness is 32%, making it medium. HSL is the most useful format for programmatic color manipulation in CSS, as you can easily adjust lightness to create tints and shades.

Is #2D158E a warm or cool color? +

#2D158E is classified as a cool color based on its hue angle of 252°. Cool colors — blues, greens, and purples — evoke calm, trust, and professionalism. They tend to recede visually and create a feeling of space. In design, cool colors are often used for technology, healthcare, and finance brands, as well as anywhere a sense of calm or reliability is needed.

What is the CMYK value of #2D158E? +

The approximate CMYK value of #2D158E is C:68% M:85% Y:0% K:44%. CMYK (Cyan, Magenta, Yellow, Key/Black) is the color model used in physical printing. Unlike RGB which mixes light additively on screens, CMYK mixes inks subtractively on paper. Note that the RGB-to-CMYK conversion is an approximation — screen colors and print colors exist in different color gamuts, and some screen colors cannot be exactly reproduced in print. For precise print work, consult a professional print color profile or Pantone matching system.

Analyze #2D158E with Other Tools

🔢
Color Converter
Get all formats for #2D158E — HEX, RGB, HSL, HSV, CMYK, harmonies and shades.
Contrast Checker
Test whether #2D158E passes WCAG AA/AAA contrast requirements as text.
🎨
Palette Generator
Generate complementary, triadic, and analogous palettes starting from #2D158E.
👓
Blindness Simulator
See how #2D158E appears to users with deuteranopia, protanopia, and tritanopia.
📊
Color Analysis
Deep analysis of luminance, temperature, psychology and harmonies for #2D158E.
🎭
Creative Aspects
Explore the mood, psychology, seasonal meaning, and mixing guide for #2D158E.
🌅
Gradient Maker
Create a beautiful CSS linear or radial gradient starting from #2D158E.
🔬
Technical Formats
See #2D158E in OKLCH, Lab, HSV, XYZ, and other advanced color spaces.
🎨
Practical Formats
Get #2D158E as a CSS variable, Tailwind class, design token, and more.

More Color Tools

Explore our full suite of free color utilities for designers and developers.