#1f172a Color Information

In a RGB color space, hex #1f172a is composed of 12.2% red, 9% green and 16.5% blue. Whereas in a CMYK color space, it is composed of 26.2% cyan, 45.2% magenta, 0% yellow and 83.5% black. It has a hue angle of 265.3 degrees, a saturation of 29.2% and a lightness of 12.7%. #1f172a color hex could be obtained by blending #3e2e54 with #000000. Closest websafe color is: #330033.

    • R 12
    • G 9
    • B 16
    RGB color chart
    • C 26
    • M 45
    • Y 0
    • K 84
    CMYK color chart

#1f172a color description : Very dark (mostly black) violet.

#1f172a Color Conversion

The hexadecimal color #1f172a has RGB values of R:31, G:23, B:42 and CMYK values of C:0.26, M:0.45, Y:0, K:0.84. Its decimal value is 2037546.

Hex triplet 1f172a #1f172a
RGB Decimal 31, 23, 42 rgb(31,23,42)
RGB Percent 12.2, 9, 16.5 rgb(12.2%,9%,16.5%)
CMYK 26, 45, 0, 84
HSL 265.3°, 29.2, 12.7 hsl(265.3,29.2%,12.7%)
HSV (or HSB) 265.3°, 45.2, 16.5
Web Safe 330033 #330033
CIE-LAB 9.572, 9.024, -11.431
XYZ 1.289, 1.071, 2.329
xyY 0.275, 0.228, 1.071
CIE-LCH 9.572, 14.563, 308.288
CIE-LUV 9.572, 1.741, -8.999
Hunter-Lab 10.35, 4.123, -6.097
Binary 00011111, 00010111, 00101010

Color Schemes with #1f172a

Complementary Color
Analogous Color
Split Complementary Color
Triadic Color
Tetradic Color
Monochromatic Color

Alternatives to #1f172a

Below, you can see some colors close to #1f172a. Having a set of related colors can be useful if you need an inspirational alternative to your original color choice.

Similar Colors

#1f172a Preview

Text with hexadecimal color #1f172a

This text has a font color of #1f172a.

<span style="color:#1f172a;">Text here</span>
#1f172a background color

This paragraph has a background color of #1f172a.

<p style="background-color:#1f172a;">Content here</p>
#1f172a border color

This element has a border color of #1f172a.

<div style="border:1px solid #1f172a;">Content here</div>
CSS codes
.text {color:#1f172a;}
.background {background-color:#1f172a;}
.border {border:1px solid #1f172a;}

Shades and Tints of #1f172a

A shade is achieved by adding black to any pure hue, while a tint is created by mixing white to any pure color. In this example, #030204 is the darkest color, while #f8f6fa is the lightest one.

Shade Color Variation
Tint Color Variation

Tones of #1f172a

A tone is produced by adding gray to any pure hue. In this case, #201f23 is the less saturated color, while #1b0041 is the most saturated one.

Tone Color Variation

Color Blindness Simulator

Below, you can see how #1f172a is perceived by people affected by a color vision deficiency. This can be useful if you need to ensure your color combinations are accessible to color-blind users.

Monochromacy
  • #1c1c1c Achromatopsia 0.005% of the population
  • #1d1b1f Atypical Achromatopsia 0.001% of the population
Dichromacy
  • #202537 Protanopia 1% of men
  • #212634 Deuteranopia 1% of men
  • #282528 Tritanopia 0.001% of the population
Trichromacy
  • #1f2032 Protanomaly 1% of men, 0.01% of women
  • #202030 Deuteranomaly 6% of men, 0.4% of women
  • #242029 Tritanomaly 0.01% of the population