Color #331A56 Color / Colour Code #331A56

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

    #331A56

    Color Conversions

    HEX
    #331A56
    RGB
    rgb(51, 26, 86)
    HSL
    hsl(265, 54%, 22%)
    HSV
    hsv(265, 70%, 34%)
    CMYK
    cmyk(41%, 70%, 0%, 66%)

    Accessibility Contrast

    WCAG contrast ratios for #331A56 against common backgrounds.

    Sample Text
    vs White (#FFFFFF)
    14.76:1
    AA PassAA Large PassAAA Pass
    Sample Text
    vs Black (#000000)
    1.42:1
    AA FailAA Large FailAAA Fail
    Sample Text
    vs Light Gray (#EEEEEE)
    12.72:1
    AA PassAA Large PassAAA Pass

    Complementary Colors

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

    Analogous Colors

    Hues at 235, 265, and 295 degrees for harmonious combinations.

    Triadic Palette

    Three colors at 265, 25, and 145 degrees.

    Color Palettes Using #331A56

    Monochromatic Scale

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

    #23123B #462376 #743BC4 #AC89DC #D5C4ED
    Warm Harmony

    Adjacent hues from 265 to 310 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.

    #824ECA #A14ECA #C04ECA #CA4EB6
    Cool Contrast

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

    #743BC4 #8BC43B #46C43B #3BC474
    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.

    #C9B8E0 #E0B8CF #E0C9B8 #CFE0B8 #B8E0C9

    Shades & Tints of #331A56

    Lightness variations at hue 265 and 54% saturation.

    CSS Gradients with #331A56

    Purple to Green
    linear-gradient(135deg, #331a56, #3d561a)
    Analogous Fade
    linear-gradient(90deg, #331a56, #511a56)
    Deep to Light
    linear-gradient(180deg, #2a1547, #cdb8ea)
    Tricolor Sweep
    linear-gradient(135deg, #331a56, #56331a, #1a5633)

    Design Use Cases for #331A56

    Balanced UI Color

    At 54% saturation, #331A56 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

    #331A56 at 22% 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

    #331A56 falls in the purple spectrum (hue 265). 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 #331A56 (hue 265) to its complement at hue 85. For a subtler effect, try pairing with an analogous color at hue 295. Use CSS: background: linear-gradient(135deg, #331a56, #3d561a);

    CSS Code for #331A56

    /* Background */
    background-color: #331a56;
    background-color: rgb(51, 26, 86);
    background-color: hsl(265, 54%, 22%);
    /* Text */
    color: #331a56;
    /* Border */
    border: 2px solid #331a56;
    /* Shadow */
    box-shadow: 0 4px 14px rgba(51, 26, 86, 0.3);
    /* CSS Variable */
    --color-primary: 265 54% 22%;

    Similar Colors

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

    Use This Color in Design Tools

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

    About Color #331A56 (#331A56)

    #331A56 is a purple color (colour) with RGB channel values of 51 red, 26 green, and 86 blue. The blue channel is dominant by a ratio of 3.3:1 over the weakest channel. In HSL terms, the hue sits at 265 degrees with 54% saturation and 22% lightness, placing it in the cool range of the colour spectrum.

    The perceived brightness of #331A56 is 40/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 41% cyan, 70% magenta, 0% yellow, and 66% key (black).

    The WCAG contrast ratio of #331A56 against white is 14.76:1 and against black is 1.42: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 #3D561A creates maximum visual tension when paired with #331A56. For more harmonious color combinations, use the analogous colours #1A1F56 and #511A56, 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 #331A56

    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 #331A56?
    #331A56 is Color #331A56, a purple color (colour) with RGB(51, 26, 86), HSL(265, 54%, 22%), and CMYK(41%, 70%, 0%, 66%). Its perceived brightness is 40/255.
    Is #331A56 accessible for text?
    Against white, #331A56 has a contrast ratio of 14.76:1 (passes AA for normal text). Against black, it has 1.42:1 (fails AA). Use the contrast checker tool for custom background pairings.
    What colours pair well with #331A56?
    The complementary colour is #3D561A (hue 85). For subtle color combinations, use analogous colours #1A1F56 and #511A56. The triadic palette adds #56331A and #1A5633 for vibrant variety.
    How do I use #331A56 in CSS?
    Use any format: color: #331a56; or rgb(51, 26, 86); or hsl(265, 54%, 22%). For CSS custom properties: --color-primary: 265 54% 22%; 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.