Color #08172F Color / Colour Code #08172F

    This page shows the hex color code for color #08172f (#08172F). The colour is a blue tone with 71% saturation and 11% lightness. Explore its conversions, colour palettes, gradients, accessibility data, and CSS code below.

    #08172F

    Color Conversions

    HEX
    #08172F
    RGB
    rgb(8, 23, 47)
    HSL
    hsl(217, 71%, 11%)
    HSV
    hsv(217, 83%, 18%)
    CMYK
    cmyk(83%, 51%, 0%, 82%)

    Accessibility Contrast

    WCAG contrast ratios for #08172F against common backgrounds.

    Sample Text
    vs White (#FFFFFF)
    17.89:1
    AA PassAA Large PassAAA Pass
    Sample Text
    vs Black (#000000)
    1.17:1
    AA FailAA Large FailAAA Fail
    Sample Text
    vs Light Gray (#EEEEEE)
    15.42:1
    AA PassAA Large PassAAA Pass

    Complementary Colors

    #08172F paired with its color wheel opposite for maximum contrast.

    Analogous Colors

    Hues at 187, 217, and 247 degrees for harmonious combinations.

    Triadic Palette

    Three colors at 217, 337, and 97 degrees.

    Color Palettes Using #08172F

    Monochromatic Scale

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

    #0B2041 #164083 #256ADA #7CA6E9 #BED2F4
    Warm Harmony

    Adjacent hues from 217 to 262 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.

    #3B79DE #3B51DE #4E3BDE #773BDE
    Cool Contrast

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

    #266BD9 #D99426 #C4D926 #6BD926
    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.

    #B8C7E0 #D1B8E0 #E0B8C7 #E0D1B8 #C7E0B8

    Shades & Tints of #08172F

    Lightness variations at hue 217 and 71% saturation.

    CSS Gradients with #08172F

    Blue to Orange
    linear-gradient(135deg, #08172f, #302108)
    Analogous Fade
    linear-gradient(90deg, #08172f, #0d0830)
    Deep to Light
    linear-gradient(180deg, #0d264e, #b1c9f2)
    Tricolor Sweep
    linear-gradient(135deg, #081730, #300817, #173008)

    Design Use Cases for #08172F

    Vibrant Brand Color

    #08172F 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.

    Dark Mode Background

    At just 11% lightness, #08172F 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.

    Trust & Professional Identity

    #08172F sits in the blue range (hue 217). Blue is the world's most popular color for corporate identities because it conveys trust, stability, and competence. Use it for navigation bars, link text, form focus states, and any element where user confidence matters. Financial, healthcare, and technology brands rely heavily on this hue range.

    Gradient Pairing

    Create a gradient from #08172F (hue 217) to its complement at hue 37. For a subtler effect, try pairing with an analogous color at hue 247. Use CSS: background: linear-gradient(135deg, #08172f, #302108);

    CSS Code for #08172F

    /* Background */
    background-color: #08172f;
    background-color: rgb(8, 23, 47);
    background-color: hsl(217, 71%, 11%);
    /* Text */
    color: #08172f;
    /* Border */
    border: 2px solid #08172f;
    /* Shadow */
    box-shadow: 0 4px 14px rgba(8, 23, 47, 0.3);
    /* CSS Variable */
    --color-primary: 217 71% 11%;

    Similar Colors

    Colors visually similar to #08172F based on RGB, lightness, and hue variations.

    Use This Color in Design Tools

    Apply #08172F across image editing and color design tools.

    About Color #08172F (#08172F)

    #08172F is a blue color (colour) with RGB channel values of 8 red, 23 green, and 47 blue. The blue channel is dominant by a ratio of 5.9:1 over the weakest channel. In HSL terms, the hue sits at 217 degrees with 71% saturation and 11% lightness, placing it in the cool range of the colour spectrum.

    The perceived brightness of #08172F is 21/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 83% cyan, 51% magenta, 0% yellow, and 82% key (black).

    The WCAG contrast ratio of #08172F against white is 17.89:1 and against black is 1.17: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 #302108 creates maximum visual tension when paired with #08172F. For more harmonious color combinations, use the analogous colours #082B30 and #0D0830, 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 #08172F

    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 #08172F?
    #08172F is Color #08172F, a blue color (colour) with RGB(8, 23, 47), HSL(217, 71%, 11%), and CMYK(83%, 51%, 0%, 82%). Its perceived brightness is 21/255.
    Is #08172F accessible for text?
    Against white, #08172F has a contrast ratio of 17.89:1 (passes AA for normal text). Against black, it has 1.17:1 (fails AA). Use the contrast checker tool for custom background pairings.
    What colours pair well with #08172F?
    The complementary colour is #302108 (hue 37). For subtle color combinations, use analogous colours #082B30 and #0D0830. The triadic palette adds #300817 and #173008 for vibrant variety.
    How do I use #08172F in CSS?
    Use any format: color: #08172f; or rgb(8, 23, 47); or hsl(217, 71%, 11%). For CSS custom properties: --color-primary: 217 71% 11%; 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.