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

Dark Violet

#402F7F

📝 Color Information for #402F7F

The hexadecimal color code #402F7F represents a dark shade in the blue family. In the RGB color model, this color is composed of 64 red, 47 green, and 127 blue, which translates to approximately 25% red, 18% green, and 50% 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, #402F7F has a hue of 253 degrees, a saturation level of 46%, and a lightness value of 34%. The hue angle of 253° places this color firmly in the blue spectrum. In the HSV/HSB color model, this translates to a hue of 253°, saturation of 63%, and brightness/value of 50%. For print applications using the CMYK color model, #402F7F would be reproduced using 50% cyan, 63% magenta, 0% yellow, and 50% 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 #402F7F with other colors, consider its complementary color at hue 73° for maximum contrast, or use analogous colors within 30° of its hue for harmonious combinations. The decimal representation of this color is 4206463, which can be useful in certain programming contexts.

🔢 Color Conversion Codes for #402F7F

Tailwind CSS
indigo-900
HEX
#402F7F
RGB
rgb(64, 47, 127)
RGB %
25%, 18%, 50%
HSL
hsl(253, 46%, 34%)
HSV
hsv(253, 63%, 50%)
CMYK
50%, 63%, 0%, 50%
Decimal
4206463
Web Safe
#333366

🎨 Color Schemes for #402F7F

Complementary
Analogous
Triadic
Split Complementary
Tetradic (Rectangle)

🔄 Alternatives to #402F7F

🌗 Shades and Tints of #402F7F

Shades (adding black)
Tints (adding white)

🎚️ Tones of #402F7F

Tones (adding gray / desaturating)

🌈 Hue Variations of #402F7F

Hue Variations (shifting the color spectrum)

👁️ Preview of #402F7F in Use

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

👓 Color Blindness Simulation for #402F7F

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 #402F7F

:root { --color-hex: #402F7F; --color-rgb: 64, 47, 127; --color-hsl: 253, 46%, 34%; } .bg-color { background-color: #402F7F; } .text-color { color: #402F7F; } .border-color { border-color: #402F7F; }

🛠️ Use #402F7F in Your Project

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

🔗 Related Colors to #402F7F

#2F457F
Hue -30°
#2F317F
Hue -15°
#542F7F
Hue +15°
#682F7F
Hue +30°
#37286C
85% L
#2D2159
70% L
#20173F
50% L
#130E25
30% L
#5941AF
47% L
#7E6AC8
60% L
#AB9EDB
74% L
#D5CFED
87% L

About Dark Violet (#402F7F)

Dark Violet is a medium, moderately saturated, cool blue color with a hue angle of 253°, saturation of 46%, and lightness of 34%. Its RGB value is (64, 47, 127) and its CMYK breakdown is C:50% M:63% Y:0% K:50%.

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 #402F7F

What is the HEX code for Dark Violet? +

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

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

What is the HSL value of #402F7F? +

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

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

The approximate CMYK value of #402F7F is C:50% M:63% Y:0% K:50%. 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 #402F7F with Other Tools

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