Black Friday 2026: design deals we check every day. See the deals →

#1A1F2E Hex Color

Inky blue with a serious edge

 
#1a1f2e
Hex color #1a1f2e graphic
Dark and muted, #1a1f2e is a blue with strong gray undertones and an inky, almost-black finish. Its low lightness creates a serious, controlled mood suited to finance, security, and technology. Use the hex code #1a1f2e as a dominant dark-mode background, where white text reaches about 16.4:1 contrast for clear readability.

Color Conversions

Hex color #1a1f2e converted to various formats including hex, rgb, hsl, and more.

  • Hex#1a1f2e
  • RGBrgb(26, 31, 46)
  • RGB Percentagesrgb(10%, 12%, 18%)
  • CMYK43%, 33%, 0%, 82%
  • HSLhsl(225, 28%, 14%)
  • HSVhsv(225, 43%, 18%)
  • OKLCHoklch(24.2% 0.030 269.9)
  • LCH12, 11, 283
  • LAB12, 2, -11
  • LUV12, -2, -9
  • XYZ1, 1, 3
  • Closest Tailwind Colormist-800

Color Variations

Variations of this color including shaded, tints, and complementary colors.

Brighten

Tints of the color as they brighten toward white.

#1a1f2e
#2d3240
#414653
#565a67
#6c707b
#838690
#9a9da5
#b3b5bb
#cbcdd1
#e5e6e8

Darken

Shades of the color as they darken toward black.

#1a1f2e
#151927
#10141f
#0c0f18
#070a12
#04060b
#020306
#010102
#000001
#000000

Desaturate

Desaturated versions of this color.

#1a1f2e
#232836
#2c313e
#363a45
#40434e
#4a4d56
#54575e
#5f6166
#6a6b6f
#757577

Hue

Various hues of this color.

#2e1a26
#2e1a2e
#261a2e
#1d1a2e
#1a1f2e
#1a272e
#1a2e2c
#1a2e24
#1a2e1c

Analogous

Analogous color palette of this color, meaning colors that are next to each other on the color wheel.

#1a1f2e
#1a272e
#1a232e

Monochromatic

Monochromatic colors for this color, monochromatic colors are all of the same hue.

#1a1f2e
#323c58
#4a5883
#6275ad
#7a92d8
#020203

Complementary

Complementary colors for this color, complementary colors are opposites on the color wheel.

#1a1f2e
#2e291a

Split Complement

Split-complementary colors which use adjacent colors of this color’s complementary color.

#1a1f2e
#2d1a2e
#272e1a

Triad

Triad colors which pull themselves in a triangle across the color wheel.

#1a1f2e
#2e1a1f
#1f2e1a

Tetrad

Tetrad colors which pull themselves in a square shape across the color wheel.

#1a1f2e
#2e1a29
#2e291a
#1a2e1f

Contrast Checker

Contrast test results for the color #1a1f2e on black and white backgrounds.
Open in contrast checker →

White Background

Passes AAA
Example Headline (24px)

The font-size of this text is 18.5px. Click anywhere to edit this text. Lorem Ipsum is simply dummy text of the printing and typesetting industry.

Black Background

Fails WCAG
Example Headline (24px)

The font-size of this text is 18.5px. Click anywhere to edit this text. Lorem Ipsum is simply dummy text of the printing and typesetting industry.

Color Blindness Simulation

See how #1a1f2e appears to people with color vision deficiency (CVD).

Normal Vision
#1a1f2e
Protanopia
#1e1e2e
Red-blind (~1% of males)
Deuteranopia
#1d1d2e
Green-blind (~1% of males)
Tritanopia
#182121
Blue-blind (very rare)
Achromatopsia
#1f1f1f
Total color blindness

Questions about #1a1f2e

What is #1a1f2e in RGB, HSL and CMYK?
In RGB, #1a1f2e is rgb(26, 31, 46), in HSL hsl(225, 28%, 14%) and in CMYK 43%, 33%, 0%, 82%. Browse more shades of black with names and hex codes.
What colors pair well with #1a1f2e?
#1a1f2e pairs well with soft white, cool gray, warm cream, and muted teal, creating readable contrast while preserving its controlled, modern mood across restrained interface palettes and polished digital layouts. Use pale tones for text or surfaces, and reserve brighter accents for actions, links, or small highlights.
Is #1a1f2e a warm or cool color?
#1a1f2e reads as a cool color because its blue component leads the red and green values, while its low saturation adds gray and softens the result into a restrained, inky blue-gray. It feels more controlled and technical than vivid or playful.
Where does #1a1f2e work best?
#1a1f2e works best for dark-mode backgrounds, navigation bars, finance dashboards, security products, and technology branding where its low brightness creates a restrained, dependable visual tone without competing with foreground content. Pair it with lighter surfaces or accents so the layout keeps clear hierarchy instead of becoming uniformly dark.
Is #1a1f2e readable on white or black?
#1a1f2e has a 16.41:1 contrast ratio on white and 1.27:1 on black. WCAG asks for 4.5:1 for body text and 3:1 for large text, so on white it works for body text and on black it is too faint for text. Try other pairs in the contrast checker.