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

Deep Violet

#402F51

📝 Color Information for #402F51

The hexadecimal color code #402F51 represents a dark shade in the purple family. In the RGB color model, this color is composed of 64 red, 47 green, and 81 blue, which translates to approximately 25% red, 18% green, and 32% 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, #402F51 has a hue of 270 degrees, a saturation level of 27%, and a lightness value of 25%. The hue angle of 270° places this color firmly in the purple spectrum. In the HSV/HSB color model, this translates to a hue of 270°, saturation of 42%, and brightness/value of 32%. For print applications using the CMYK color model, #402F51 would be reproduced using 21% cyan, 42% magenta, 0% yellow, and 68% 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. As a darker shade, it works well for text, headers, and creating visual weight in compositions. The moderate to low saturation gives this color a sophisticated, muted quality that works well in professional and minimalist designs. When pairing #402F51 with other colors, consider its complementary color at hue 90° for maximum contrast, or use analogous colors within 30° of its hue for harmonious combinations. The decimal representation of this color is 4206417, which can be useful in certain programming contexts.

🔢 Color Conversion Codes for #402F51

Tailwind CSS
zinc-700
HEX
#402F51
RGB
rgb(64, 47, 81)
RGB %
25%, 18%, 32%
HSL
hsl(270, 27%, 25%)
HSV
hsv(270, 42%, 32%)
CMYK
21%, 42%, 0%, 68%
Decimal
4206417
Web Safe
#333366

🎨 Color Schemes for #402F51

Complementary
Analogous
Triadic
Split Complementary
Tetradic (Rectangle)

🔄 Alternatives to #402F51

🌗 Shades and Tints of #402F51

Shades (adding black)
Tints (adding white)

🎚️ Tones of #402F51

Tones (adding gray / desaturating)

🌈 Hue Variations of #402F51

Hue Variations (shifting the color spectrum)

👁️ Preview of #402F51 in Use

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

👓 Color Blindness Simulation for #402F51

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

:root { --color-hex: #402F51; --color-rgb: 64, 47, 81; --color-hsl: 270, 27%, 25%; } .bg-color { background-color: #402F51; } .text-color { color: #402F51; } .border-color { border-color: #402F51; }

🛠️ Use #402F51 in Your Project

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

🔗 Related Colors to #402F51

#2F2F51
Hue -30°
#372F51
Hue -15°
#482F51
Hue +15°
#512F51
Hue +30°
#362744
85% L
#2E223A
70% L
#21182A
50% L
#140F1A
30% L
#664A82
40% L
#8C6DAB
55% L
#B39EC7
70% L
#D9CEE3
85% L

About Deep Violet (#402F51)

Deep Violet is a dark, moderately saturated, cool purple color with a hue angle of 270°, saturation of 27%, and lightness of 25%. Its RGB value is (64, 47, 81) and its CMYK breakdown is C:21% M:42% Y:0% K:68%.

This is a Winter (Deep) color palette archetype. Royalty, Luxury, Ambition, Magic. Purple combines the stability of blue and the energy of red.

Frequently Asked Questions About #402F51

What is the HEX code for Deep Violet? +

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

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

What is the HSL value of #402F51? +

The HSL value of #402F51 is hsl(270, 27%, 25%). The hue is 270°, placing it in the purple family on the color wheel. The saturation is 27%, making it moderately saturated. The lightness is 25%, making it dark. HSL is the most useful format for programmatic color manipulation in CSS, as you can easily adjust lightness to create tints and shades.

Is #402F51 a warm or cool color? +

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

The approximate CMYK value of #402F51 is C:21% M:42% Y:0% K:68%. 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 #402F51 with Other Tools

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