Color #331E6B Color / Colour Code #331E6B

    This page shows the hex color code for color #331e6b (#331E6B). The colour is a purple tone with 56% saturation and 27% lightness. Explore its conversions, colour palettes, gradients, accessibility data, and CSS code below.

    #331E6B

    Color Conversions

    HEX
    #331E6B
    RGB
    rgb(51, 30, 107)
    HSL
    hsl(256, 56%, 27%)
    HSV
    hsv(256, 72%, 42%)
    CMYK
    cmyk(52%, 72%, 0%, 58%)

    Accessibility Contrast

    WCAG contrast ratios for #331E6B against common backgrounds.

    Sample Text
    vs White (#FFFFFF)
    13.65:1
    AA PassAA Large PassAAA Pass
    Sample Text
    vs Black (#000000)
    1.54:1
    AA FailAA Large FailAAA Fail
    Sample Text
    vs Light Gray (#EEEEEE)
    11.76:1
    AA PassAA Large PassAAA Pass

    Complementary Colors

    #331E6B paired with its color wheel opposite for maximum contrast.

    Analogous Colors

    Hues at 226, 256, and 286 degrees for harmonious combinations.

    Triadic Palette

    Three colors at 256, 16, and 136 degrees.

    Color Palettes Using #331E6B

    Monochromatic Scale

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

    #1C113C #392277 #5E38C7 #9F88DD #CFC3EE
    Warm Harmony

    Adjacent hues from 256 to 301 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.

    #6E4CCD #8E4CCD #AF4CCD #CD4CCA
    Cool Contrast

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

    #5E38C7 #A1C738 #59C738 #38C75E
    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.

    #C2B8E0 #E0B8D6 #E0C2B8 #D6E0B8 #B8E0C2

    Shades & Tints of #331E6B

    Lightness variations at hue 256 and 56% saturation.

    CSS Gradients with #331E6B

    Purple to Green
    linear-gradient(135deg, #331e6b, #576b1e)
    Analogous Fade
    linear-gradient(90deg, #331e6b, #591e6b)
    Deep to Light
    linear-gradient(180deg, #221448, #c5b7eb)
    Tricolor Sweep
    linear-gradient(135deg, #331e6b, #6b331e, #1e6b33)

    Design Use Cases for #331E6B

    Balanced UI Color

    At 56% saturation, #331E6B strikes a balance between vibrancy and restraint. This makes it versatile for primary UI elements like navigation bars, card headers, and form accents. It draws attention without overwhelming adjacent content.

    Deep Accent & Text Color

    #331E6B at 27% lightness is dark enough for readable body text on light backgrounds while retaining its purple character. Use for headings, emphasized text, or deep accent borders. It provides contrast without the harshness of pure black.

    Creativity & Premium Positioning

    #331E6B falls in the purple spectrum (hue 256). 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 #331E6B (hue 256) to its complement at hue 76. For a subtler effect, try pairing with an analogous color at hue 286. Use CSS: background: linear-gradient(135deg, #331e6b, #576b1e);

    CSS Code for #331E6B

    /* Background */
    background-color: #331e6b;
    background-color: rgb(51, 30, 107);
    background-color: hsl(256, 56%, 27%);
    /* Text */
    color: #331e6b;
    /* Border */
    border: 2px solid #331e6b;
    /* Shadow */
    box-shadow: 0 4px 14px rgba(51, 30, 107, 0.3);
    /* CSS Variable */
    --color-primary: 256 56% 27%;

    Similar Colors

    Colors visually similar to #331E6B based on RGB, lightness, and hue variations.

    Use This Color in Design Tools

    Apply #331E6B across image editing and color design tools.

    About Color #331E6B (#331E6B)

    #331E6B is a purple color (colour) with RGB channel values of 51 red, 30 green, and 107 blue. The blue channel is dominant by a ratio of 3.6:1 over the weakest channel. In HSL terms, the hue sits at 256 degrees with 56% saturation and 27% lightness, placing it in the cool range of the colour spectrum.

    The perceived brightness of #331E6B is 45/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 52% cyan, 72% magenta, 0% yellow, and 58% key (black).

    The WCAG contrast ratio of #331E6B against white is 13.65:1 and against black is 1.54: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 #576B1E creates maximum visual tension when paired with #331E6B. For more harmonious color combinations, use the analogous colours #1E306B and #591E6B, 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 #331E6B

    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 #331E6B?
    #331E6B is Color #331E6B, a purple color (colour) with RGB(51, 30, 107), HSL(256, 56%, 27%), and CMYK(52%, 72%, 0%, 58%). Its perceived brightness is 45/255.
    Is #331E6B accessible for text?
    Against white, #331E6B has a contrast ratio of 13.65:1 (passes AA for normal text). Against black, it has 1.54:1 (fails AA). Use the contrast checker tool for custom background pairings.
    What colours pair well with #331E6B?
    The complementary colour is #576B1E (hue 76). For subtle color combinations, use analogous colours #1E306B and #591E6B. The triadic palette adds #6B331E and #1E6B33 for vibrant variety.
    How do I use #331E6B in CSS?
    Use any format: color: #331e6b; or rgb(51, 30, 107); or hsl(256, 56%, 27%). For CSS custom properties: --color-primary: 256 56% 27%; 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.