Skip to content

#1f2d2c

a deep, soft cyan · cool · closest name: Dark Slate Gray

RGB
31, 45, 44
HSL
176°, 18%, 15%
CMYK
31, 0, 2, 82
Luminance
0.0235

At a glance

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

Hex
#1f2d2c
Hue
176°
cyan
Saturation
18%
soft
Lightness
15%
deep
Brightness
18%
HSV value
Perceived
16%
weighted brightness
Luminance
0.0235
WCAG relative
Temperature
Cool
69/100 cool
Color family
Cyan
Tone
Soft
Best ink
White
14.29:1
Closest name
Dark Slate Gray
ΔE2000 11.5
Where it sits
Hue176° of 360°
Saturation18%
Lightness15%
Temperature
Warm ← → Cool69% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#1f2d2c
RGBrgb(31, 45, 44)
HSLhsl(176, 18%, 15%)
CMYKcmyk(31%, 0%, 2%, 82%)
LABlab(17.2 -6.2 -1.3)
LCHlch(17.2 6.3 191.7)
OKLCHoklch(0.284 0.019 190.6)
Decimal2043180
Display P3color(display-p3 0.122 0.176 0.173)

Copy-ready code

/* CSS */
color: #1f2d2c;
background-color: #1f2d2c;
/* Tailwind (arbitrary) */
class="text-[#1f2d2c] bg-[#1f2d2c]"
/* SCSS */
$brand: #1f2d2c;
/* SwiftUI */
Color(red: 0.122, green: 0.176, blue: 0.173)
/* Android */
Color.parseColor("#1f2d2c")
/* Flutter */
Color(0xFF1F2D2C)
/* Python / OpenCV (BGR) */
(44, 45, 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 #1f2d2c · 14.29:1
Use #ffffffAAA at every size.
Aa
White text · 14.29:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.47:1
AA fail · AA large fail · AAA fail
Reading the other direction: #1f2d2c as text scores 14.29:1 on white and 1.47:1 on black.

Accessibility — WCAG contrast

Aa
#1f2d2c on white: 14.29:1
AA ✓ pass · AA-large · AAA
Aa
#1f2d2c on black: 1.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2B2C2C
deuteranopia · #292A2C
tritanopia · #1B2E2D

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #1f2d2c 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.

#F6F8F8
#EEF2F2
#D8E3E2
#BDD1D0
#9BBAB8
#7AA3A0
#64918E
#537976
#43615E
#334846
#1f2d2c
Base = 950Lightest = 50 · #F6F8F8Darkest = 950 · #1f2d2c
:root {
  --brand-50: #F6F8F8;
  --brand-100: #EEF2F2;
  --brand-200: #D8E3E2;
  --brand-300: #BDD1D0;
  --brand-400: #9BBAB8;
  --brand-500: #7AA3A0;
  --brand-600: #64918E;
  --brand-700: #537976;
  --brand-800: #43615E;
  --brand-900: #334846;
  --brand-950: #1f2d2c;
  --brand: #1f2d2c;
  --brand-ink: #ffffff;
}

Colors that work with #1f2d2c

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#F6F9F9
Tinted page background
Border#CFDEDD
Hairlines and dividers
Muted text#5E8885
Captions on the surface
Accent#2F1D23
Second voice, not a rival
Dark variant#344B4A
Hover, pressed, headers
Light variant#F0F5F4
Selected rows, tints
Dark surface#172120
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 #1f2d2c

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

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Black text placed on it
  • Thin strokes and 1px borders — they disappear on light UI
  • 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#2D1F20
Analogous left#1F2D25
Analogous right#1F272D
Split-complement 1#2D1F27
Split-complement 2#2D251F
Triadic 1#2C1F2D
Triadic 2#2D2C1F
Tetradic#251F2D

RGB percentages

Red12.2%
Green17.6%
Blue17.3%

CMYK percentages

Cyan31.1%
Magenta0.0%
Yellow2.2%
Key (black)82.4%

Color previews

#1f2d2c text on a black background

contrast 1.47:1

Card sample

#1f2d2c text on a white background

contrast 14.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(31, 45, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(31, 45, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1f2d2c;
background: linear-gradient(135deg, #1f2d2c, #1F252D);

Monochromatic scale

Palettes built from #1f2d2c

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.

#1f2d2c in the real world

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

Industries
TechnologyTravelHealthcareMedia
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#1f2d2c, answered

What color is #1f2d2c?

#1f2d2c is a deep soft cyan, closest to Dark Slate Gray (ΔE2000 11.5). It sits at 176° on the hue wheel with 18% saturation and 15% lightness, which reads as cool.

What is the RGB value of #1f2d2c?

rgb(31, 45, 44) — 31 red, 45 green and 44 blue out of 255, or 12.2% / 17.6% / 17.3% by channel.

Is #1f2d2c a light or a dark color?

It is a dark color. Relative luminance is 0.0235 and perceived brightness is 16%, so white text on it reaches 14.29:1.

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

White. It scores 14.29:1 against #1f2d2c, versus 1.47:1 for black — AAA at any size.

What is the complementary color of #1f2d2c?

#2D1F20 sits directly opposite on the wheel. Softer options are the split-complements #2D1F27 and #2D251F, which give the same contrast with far less vibration.

What colors go well with #1f2d2c?

For interface work: #F6F9F9 as the surface, #CFDEDD for borders, #5E8885 for secondary text, #2F1D23 as an accent and #344B4A for hover and pressed states. For a palette, the analogous pair #1F2D25 and #1F272D stays calm, while #2D1F20 is the loudest partner.

What is #1f2d2c in CMYK for printing?

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

Is #1f2d2c warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #1F2D27; nudged cooler, #1E292E.

Work with #1f2d2c in the Color Lab