Color #08040D Color / Colour Code #08040D

    This page shows the hex color code for color #08040d (#08040D). The colour is a purple tone with 53% saturation and 3% lightness. Explore its conversions, colour palettes, gradients, accessibility data, and CSS code below.

    #08040D

    Color Conversions

    HEX
    #08040D
    RGB
    rgb(8, 4, 13)
    HSL
    hsl(267, 53%, 3%)
    HSV
    hsv(267, 69%, 5%)
    CMYK
    cmyk(38%, 69%, 0%, 95%)

    Accessibility Contrast

    WCAG contrast ratios for #08040D against common backgrounds.

    Sample Text
    vs White (#FFFFFF)
    20.32:1
    AA PassAA Large PassAAA Pass
    Sample Text
    vs Black (#000000)
    1.03:1
    AA FailAA Large FailAAA Fail
    Sample Text
    vs Light Gray (#EEEEEE)
    17.51:1
    AA PassAA Large PassAAA Pass

    Complementary Colors

    #08040D paired with its color wheel opposite for maximum contrast.

    Analogous Colors

    Hues at 237, 267, and 297 degrees for harmonious combinations.

    Triadic Palette

    Three colors at 267, 27, and 147 degrees.

    Color Palettes Using #08040D

    Monochromatic Scale

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

    #24123B #482475 #793CC3 #AE8ADB #D7C4ED
    Warm Harmony

    Adjacent hues from 267 to 312 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.

    #864FC9 #A54FC9 #C34FC9 #C94FB1
    Cool Contrast

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

    #793CC3 #86C33C #43C33C #3CC379
    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.

    #CAB8E0 #E0B8CE #E0CAB8 #CEE0B8 #B8E0CA

    Shades & Tints of #08040D

    Lightness variations at hue 267 and 53% saturation.

    CSS Gradients with #08040D

    Purple to Green
    linear-gradient(135deg, #08040d, #080c04)
    Analogous Fade
    linear-gradient(90deg, #08040d, #0b040c)
    Deep to Light
    linear-gradient(180deg, #2b1646, #cfb9e9)
    Tricolor Sweep
    linear-gradient(135deg, #07040c, #0c0704, #040c07)

    Design Use Cases for #08040D

    Balanced UI Color

    At 53% saturation, #08040D 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.

    Dark Mode Background

    At just 3% lightness, #08040D works as a dark mode background or overlay color. Dark backgrounds reduce eye strain in low-light environments and make bright accent colors pop. Pair with light text (minimum 4.5:1 contrast ratio) for readability.

    Creativity & Premium Positioning

    #08040D falls in the purple spectrum (hue 267). 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 #08040D (hue 267) to its complement at hue 87. For a subtler effect, try pairing with an analogous color at hue 297. Use CSS: background: linear-gradient(135deg, #08040d, #080c04);

    CSS Code for #08040D

    /* Background */
    background-color: #08040d;
    background-color: rgb(8, 4, 13);
    background-color: hsl(267, 53%, 3%);
    /* Text */
    color: #08040d;
    /* Border */
    border: 2px solid #08040d;
    /* Shadow */
    box-shadow: 0 4px 14px rgba(8, 4, 13, 0.3);
    /* CSS Variable */
    --color-primary: 267 53% 3%;

    Similar Colors

    Colors visually similar to #08040D based on RGB, lightness, and hue variations.

    Use This Color in Design Tools

    Apply #08040D across image editing and color design tools.

    About Color #08040D (#08040D)

    #08040D is a purple color (colour) with RGB channel values of 8 red, 4 green, and 13 blue. The blue channel is dominant by a ratio of 3.3:1 over the weakest channel. In HSL terms, the hue sits at 267 degrees with 53% saturation and 3% lightness, placing it in the cool range of the colour spectrum.

    The perceived brightness of #08040D is 6/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 38% cyan, 69% magenta, 0% yellow, and 95% key (black).

    The WCAG contrast ratio of #08040D against white is 20.32:1 and against black is 1.03: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 #080C04 creates maximum visual tension when paired with #08040D. For more harmonious color combinations, use the analogous colours #04040C and #0B040C, 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 #08040D

    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 #08040D?
    #08040D is Color #08040D, a purple color (colour) with RGB(8, 4, 13), HSL(267, 53%, 3%), and CMYK(38%, 69%, 0%, 95%). Its perceived brightness is 6/255.
    Is #08040D accessible for text?
    Against white, #08040D has a contrast ratio of 20.32:1 (passes AA for normal text). Against black, it has 1.03:1 (fails AA). Use the contrast checker tool for custom background pairings.
    What colours pair well with #08040D?
    The complementary colour is #080C04 (hue 87). For subtle color combinations, use analogous colours #04040C and #0B040C. The triadic palette adds #0C0704 and #040C07 for vibrant variety.
    How do I use #08040D in CSS?
    Use any format: color: #08040d; or rgb(8, 4, 13); or hsl(267, 53%, 3%). For CSS custom properties: --color-primary: 267 53% 3%; 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.