✓ Copied to clipboard
#40336C (Dark Violet) color swatch preview — Color From Pic.
#40336C — Dark Violet color swatch

Dark Violet

#40336C

📝 Color Information for #40336C

The hexadecimal color code #40336C represents a dark shade in the blue family. In the RGB color model, this color is composed of 64 red, 51 green, and 108 blue, which translates to approximately 25% red, 20% green, and 42% blue. This makes it a slightly desaturated color with cool undertones that can evoke different emotional responses depending on its application. When analyzed in the HSL (Hue, Saturation, Lightness) color space, #40336C has a hue of 254 degrees, a saturation level of 36%, and a lightness value of 31%. The hue angle of 254° places this color firmly in the blue spectrum. In the HSV/HSB color model, this translates to a hue of 254°, saturation of 53%, and brightness/value of 42%. For print applications using the CMYK color model, #40336C would be reproduced using 41% cyan, 53% magenta, 0% yellow, and 58% black. The closest web-safe color is #333366, 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 moderate to low saturation gives this color a sophisticated, muted quality that works well in professional and minimalist designs. When pairing #40336C with other colors, consider its complementary color at hue 74° for maximum contrast, or use analogous colors within 30° of its hue for harmonious combinations. The decimal representation of this color is 4207468, which can be useful in certain programming contexts.

🔢 Color Conversion Codes for #40336C

Tailwind CSS
indigo-900
HEX
#40336C
RGB
rgb(64, 51, 108)
RGB %
25%, 20%, 42%
HSL
hsl(254, 36%, 31%)
HSV
hsv(254, 53%, 42%)
CMYK
41%, 53%, 0%, 58%
Decimal
4207468
Web Safe
#333366

🎨 Color Schemes for #40336C

Complementary
Analogous
Triadic
Split Complementary
Tetradic (Rectangle)

🔄 Alternatives to #40336C

🌗 Shades and Tints of #40336C

Shades (adding black)
Tints (adding white)

🎚️ Tones of #40336C

Tones (adding gray / desaturating)

🌈 Hue Variations of #40336C

Hue Variations (shifting the color spectrum)

👁️ Preview of #40336C in Use

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

👓 Color Blindness Simulation for #40336C

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 #40336C

:root { --color-hex: #40336C; --color-rgb: 64, 51, 108; --color-hsl: 254, 36%, 31%; } .bg-color { background-color: #40336C; } .text-color { color: #40336C; } .border-color { border-color: #40336C; }

🛠️ Use #40336C in Your Project

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

🔗 Related Colors to #40336C

#33426C
Hue -30°
#33346C
Hue -15°
#4E336C
Hue +15°
#5C336C
Hue +30°
#362A5A
85% L
#2D244C
70% L
#211A37
50% L
#130F1F
30% L
#5D499C
45% L
#8271BC
59% L
#AA9ED1
72% L
#D4CEE8
86% L

About Dark Violet (#40336C)

Dark Violet is a medium, moderately saturated, cool blue color with a hue angle of 254°, saturation of 36%, and lightness of 31%. Its RGB value is (64, 51, 108) and its CMYK breakdown is C:41% M:53% Y:0% K:58%.

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 #40336C

What is the HEX code for Dark Violet? +

The HEX code for Dark Violet is #40336C. In CSS you can use it directly as color: #40336C; or as a background: background-color: #40336C;. 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 #40336C? +

The RGB value of #40336C is rgb(64, 51, 108). This means the color contains 64 out of 255 parts red, 51 out of 255 parts green, and 108 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(64, 51, 108);

What is the HSL value of #40336C? +

The HSL value of #40336C is hsl(254, 36%, 31%). The hue is 254°, placing it in the blue family on the color wheel. The saturation is 36%, making it moderately saturated. The lightness is 31%, 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 #40336C a warm or cool color? +

#40336C is classified as a cool color based on its hue angle of 254°. 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 #40336C? +

The approximate CMYK value of #40336C is C:41% M:53% Y:0% K:58%. 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 #40336C with Other Tools

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