Skip to content

#1f1e21

a deep, muted gray · neutral · closest name: Black

RGB
31, 30, 33
HSL
260°, 5%, 12%
CMYK
6, 9, 0, 87
Luminance
0.0133

At a glance

Every number on this page in one read: what #1f1e21 is made of, how bright it looks, and which way it leans.

Hex
#1f1e21
Hue
260°
gray
Saturation
5%
muted
Lightness
12%
deep
Brightness
13%
HSV value
Perceived
12%
weighted brightness
Luminance
0.0133
WCAG relative
Temperature
Neutral
53/100 cool
Color family
Gray
Tone
Muted
Best ink
White
16.59:1
Closest name
Black
ΔE2000 7.3
Where it sits
Hue260° of 360°
Saturation5%
Lightness12%
Temperature
Warm ← → Cool53% cool

Near-neutral, so temperature is a whisper rather than a statement — the tinted siblings below show which way it can lean.

Every format

HEX#1f1e21
RGBrgb(31, 30, 33)
HSLhsl(260, 5%, 12%)
CMYKcmyk(6%, 9%, 0%, 87%)
LABlab(11.5 1.2 -1.9)
LCHlch(11.5 2.2 303.5)
OKLCHoklch(0.237 0.006 301.1)
Decimal2039329
Display P3color(display-p3 0.122 0.118 0.129)

Copy-ready code

/* CSS */
color: #1f1e21;
background-color: #1f1e21;
/* Tailwind (arbitrary) */
class="text-[#1f1e21] bg-[#1f1e21]"
/* SCSS */
$brand: #1f1e21;
/* SwiftUI */
Color(red: 0.122, green: 0.118, blue: 0.129)
/* Android */
Color.parseColor("#1f1e21")
/* Flutter */
Color(0xFF1F1E21)
/* Python / OpenCV (BGR) */
(33, 30, 31)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #1f1e21 · 16.59:1
Use #ffffffAAA at every size.
Aa
White text · 16.59:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.27:1
AA fail · AA large fail · AAA fail
Reading the other direction: #1f1e21 as text scores 16.59:1 on white and 1.27:1 on black.

Accessibility — WCAG contrast

Aa
#1f1e21 on white: 16.59:1
AA ✓ pass · AA-large · AAA
Aa
#1f1e21 on black: 1.27:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1E1E21
deuteranopia · #1E1E21
tritanopia · #1F1E1F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #1f1e21 is pinned to step 950; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F7F7F8
#F0EFF0
#DDDCDF
#C6C4CA
#AAA7AF
#8D8994
#787580
#64616B
#504E56
#3C3A40
#1f1e21
Base = 950Lightest = 50 · #F7F7F8Darkest = 950 · #1f1e21
:root {
  --brand-50: #F7F7F8;
  --brand-100: #F0EFF0;
  --brand-200: #DDDCDF;
  --brand-300: #C6C4CA;
  --brand-400: #AAA7AF;
  --brand-500: #8D8994;
  --brand-600: #787580;
  --brand-700: #64616B;
  --brand-800: #504E56;
  --brand-900: #3C3A40;
  --brand-950: #1f1e21;
  --brand: #1f1e21;
  --brand-ink: #ffffff;
}

Colors that work with #1f1e21

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F7F7F8
Tinted page background
Border#D6D4D8
Hairlines and dividers
Muted text#716D78
Captions on the surface
Accent#22221D
Second voice, not a rival
Dark variant#3F3D43
Hover, pressed, headers
Light variant#F2F2F3
Selected rows, tints
Dark surface#1C1B1D
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #1f1e21

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Borders, dividers and quiet backgrounds
  • Long-form reading surfaces
  • Headers, footers and dark-mode surfaces
  • Neutral UI chrome and typography
Use with care
  • Text on black or near-black surfaces
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#20211E
Analogous left#1E1F21
Analogous right#211E21
Split-complement 1#21211E
Split-complement 2#1F211E
Triadic 1#211F1E
Triadic 2#1E211F
Tetradic#211E1F

RGB percentages

Red12.2%
Green11.8%
Blue12.9%

CMYK percentages

Cyan6.1%
Magenta9.1%
Yellow0.0%
Key (black)87.1%

Color previews

#1f1e21 text on a black background

contrast 1.27:1

Card sample

#1f1e21 text on a white background

contrast 16.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #1f1e21;
Background color
Panel with #1f1e21 background
background-color: #1f1e21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #1f1e21;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(31, 30, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(31, 30, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1f1e21;
background: linear-gradient(135deg, #1f1e21, #211E21);

Monochromatic scale

Palettes built from #1f1e21

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#1f1e21 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
EditorialArchitectureEnterpriseLuxury goods
Common UI roles
BackgroundsBordersBody textDividers
Print note

Converts to four-color process without much drama. Proof it anyway.

#1f1e21, answered

What color is #1f1e21?

#1f1e21 is a deep muted gray, closest to Black (ΔE2000 7.3). It sits at 260° on the hue wheel with 5% saturation and 12% lightness, which reads as neutral.

What is the RGB value of #1f1e21?

rgb(31, 30, 33) — 31 red, 30 green and 33 blue out of 255, or 12.2% / 11.8% / 12.9% by channel.

Is #1f1e21 a light or a dark color?

It is a dark color. Relative luminance is 0.0133 and perceived brightness is 12%, so white text on it reaches 16.59:1.

Should I use black or white text on #1f1e21?

White. It scores 16.59:1 against #1f1e21, versus 1.27:1 for black — AAA at any size.

What is the complementary color of #1f1e21?

#20211E sits directly opposite on the wheel. Softer options are the split-complements #21211E and #1F211E, which give the same contrast with far less vibration.

What colors go well with #1f1e21?

For interface work: #F7F7F8 as the surface, #D6D4D8 for borders, #716D78 for secondary text, #22221D as an accent and #3F3D43 for hover and pressed states. For a palette, the analogous pair #1E1F21 and #211E21 stays calm, while #20211E is the loudest partner.

What is #1f1e21 in CMYK for printing?

cmyk(6%, 9%, 0%, 87%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #1f1e21 warm or cool?

Neutral — it scores 53 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2A2420; nudged cooler, #171A1E.

Work with #1f1e21 in the Color Lab