Color #401B9D Color / Colour Code #401B9D

    This page shows the hex color code for color #401b9d (#401B9D). The colour is a purple tone with 71% saturation and 36% lightness. Explore its conversions, colour palettes, gradients, accessibility data, and CSS code below.

    #401B9D

    Color Conversions

    HEX
    #401B9D
    RGB
    rgb(64, 27, 157)
    HSL
    hsl(257, 71%, 36%)
    HSV
    hsv(257, 83%, 62%)
    CMYK
    cmyk(59%, 83%, 0%, 38%)

    Accessibility Contrast

    WCAG contrast ratios for #401B9D against common backgrounds.

    Sample Text
    vs White (#FFFFFF)
    11.28:1
    AA PassAA Large PassAAA Pass
    Sample Text
    vs Black (#000000)
    1.86:1
    AA FailAA Large FailAAA Fail
    Sample Text
    vs Light Gray (#EEEEEE)
    9.72:1
    AA PassAA Large PassAAA Pass

    Complementary Colors

    #401B9D paired with its color wheel opposite for maximum contrast.

    Analogous Colors

    Hues at 227, 257, and 287 degrees for harmonious combinations.

    Triadic Palette

    Three colors at 257, 17, and 137 degrees.

    Color Palettes Using #401B9D

    Monochromatic Scale

    Five shades at lightness levels 15% through 85% while keeping hue at 257 and saturation at 71%. Use the darkest shade for text and the lightest for backgrounds to build a cohesive single-hue design system.

    #1A0B41 #351683 #5825DA #9B7CE9 #CDBEF4
    Warm Harmony

    Adjacent hues from 257 to 302 degrees create a warm, unified palette. This analogous scheme works for marketing materials, seasonal campaigns, and any design that needs visual warmth without clashing colors.

    #693BDE #923BDE #BA3BDE #DE3BD8
    Cool Contrast

    Combines the base color at hue 257 with its complement at 77 and two adjacent cool tones. This split-complementary approach provides strong visual contrast while remaining more balanced than a pure complementary scheme.

    #5926D9 #A6D926 #4DD926 #26D959
    Pastel Variation

    Five evenly spaced hues at 40% saturation and 80% lightness. Pastels are gentle on the eyes and work well for dashboards, onboarding screens, category tags, and any interface where multiple distinct colors are needed without visual aggression.

    #C3B8E0 #E0B8D5 #E0C3B8 #D5E0B8 #B8E0C3

    Shades & Tints of #401B9D

    Lightness variations at hue 257 and 71% saturation.

    CSS Gradients with #401B9D

    Purple to Green
    linear-gradient(135deg, #401b9d, #789d1b)
    Analogous Fade
    linear-gradient(90deg, #401b9d, #811b9d)
    Deep to Light
    linear-gradient(180deg, #200d4e, #c3b1f2)
    Tricolor Sweep
    linear-gradient(135deg, #401b9d, #9d401b, #1b9d40)

    Design Use Cases for #401B9D

    Vibrant Brand Color

    #401B9D has a strong 71% saturation that makes it ideal for brand identity elements. Use it for logos, primary call-to-action buttons, hero section accents, and marketing materials where visual impact matters. This saturation level is eye-catching without being harsh.

    Primary Interface Color

    At 36% lightness, #401B9D is in the mid-range, making it ideal for interactive elements like buttons, links, and selected states. This lightness level ensures good contrast against both light and dark adjacent elements in most layouts.

    Creativity & Premium Positioning

    #401B9D falls in the purple spectrum (hue 257). Purple communicates creativity, wisdom, and luxury. It is effective for premium product highlights, creative portfolio accents, meditation app interfaces, and rewards program branding. Purple occupies a unique space between the energy of red and the calm of blue.

    Gradient Pairing

    Create a gradient from #401B9D (hue 257) to its complement at hue 77. For a subtler effect, try pairing with an analogous color at hue 287. Use CSS: background: linear-gradient(135deg, #401b9d, #789d1b);

    CSS Code for #401B9D

    /* Background */
    background-color: #401b9d;
    background-color: rgb(64, 27, 157);
    background-color: hsl(257, 71%, 36%);
    /* Text */
    color: #401b9d;
    /* Border */
    border: 2px solid #401b9d;
    /* Shadow */
    box-shadow: 0 4px 14px rgba(64, 27, 157, 0.3);
    /* CSS Variable */
    --color-primary: 257 71% 36%;

    Similar Colors

    Colors visually similar to #401B9D based on RGB, lightness, and hue variations.

    Use This Color in Design Tools

    Apply #401B9D across image editing and color design tools.

    About Color #401B9D (#401B9D)

    #401B9D is a purple color (colour) with RGB channel values of 64 red, 27 green, and 157 blue. The blue channel is dominant by a ratio of 5.8:1 over the weakest channel. In HSL terms, the hue sits at 257 degrees with 71% saturation and 36% lightness, placing it in the cool range of the colour spectrum.

    The perceived brightness of #401B9D is 53/255 using the ITU-R BT.601 luma formula (0.299R + 0.587G + 0.114B). This appears dark to the human eye, so pair it with light text for adequate readability. For print production, the CMYK equivalent is 59% cyan, 83% magenta, 0% yellow, and 38% key (black).

    The WCAG contrast ratio of #401B9D against white is 11.28:1 and against black is 1.86:1. This exceeds the AAA requirement (7:1) for normal text on white, making it excellent for body text and small UI labels on light backgrounds.

    The complementary colour #789D1B creates maximum visual tension when paired with #401B9D. For more harmonious color combinations, use the analogous colours #1B379D and #811B9D, which sit 30 degrees on either side of the hue wheel. To build a complete design system, start with the monochromatic scale above for consistent shade variations, then add one complementary or triadic accent for interactive elements.

    How to Explore Color #401B9D

    1. Enter your color value in HEX format.
    2. The tool converts it to RGB, HSL, CMYK format in real time.
    3. Copy the converted value to your clipboard.

    Color Converter · Contrast Checker

    What is HEX to RGB, HSL, CMYK color conversion

    Converting from HEX to RGB, HSL, CMYK translates a color value between two different color models. Different color models are used in web design (HEX, RGB), print (CMYK), and color theory (HSL, HSV).

    Related Tools & Colors

    Frequently Asked Questions

    What color / colour is #401B9D?
    #401B9D is Color #401B9D, a purple color (colour) with RGB(64, 27, 157), HSL(257, 71%, 36%), and CMYK(59%, 83%, 0%, 38%). Its perceived brightness is 53/255.
    Is #401B9D accessible for text?
    Against white, #401B9D has a contrast ratio of 11.28:1 (passes AA for normal text). Against black, it has 1.86:1 (fails AA). Use the contrast checker tool for custom background pairings.
    What colours pair well with #401B9D?
    The complementary colour is #789D1B (hue 77). For subtle color combinations, use analogous colours #1B379D and #811B9D. The triadic palette adds #9D401B and #1B9D40 for vibrant variety.
    How do I use #401B9D in CSS?
    Use any format: color: #401b9d; or rgb(64, 27, 157); or hsl(257, 71%, 36%). For CSS custom properties: --color-primary: 257 71% 36%; then use it as hsl(var(--color-primary)).
    Is this color / colour explorer free?
    Yes, completely free with no signup required. All colour calculations run in your browser. You can explore any valid hex color code, not just the pre-generated palette.