Skip to content

#2f474f

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

RGB
47, 71, 79
HSL
195°, 25%, 25%
CMYK
41, 10, 0, 69
Luminance
0.0568

At a glance

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

Hex
#2f474f
Hue
195°
cyan
Saturation
25%
soft
Lightness
25%
deep
Brightness
31%
HSV value
Perceived
26%
weighted brightness
Luminance
0.0568
WCAG relative
Temperature
Cool
82/100 cool
Color family
Cyan
Tone
Soft
Best ink
White
9.84:1
Closest name
Dark Slate Gray
ΔE2000 6.3
Where it sits
Hue195° of 360°
Saturation25%
Lightness25%
Temperature
Warm ← → Cool82% 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#2f474f
RGBrgb(47, 71, 79)
HSLhsl(195, 25%, 25%)
CMYKcmyk(41%, 10%, 0%, 69%)
LABlab(28.6 -6.9 -7.7)
LCHlch(28.6 10.3 228.4)
OKLCHoklch(0.382 0.033 220.7)
Decimal3098447
Display P3color(display-p3 0.184 0.278 0.310)

Copy-ready code

/* CSS */
color: #2f474f;
background-color: #2f474f;
/* Tailwind (arbitrary) */
class="text-[#2f474f] bg-[#2f474f]"
/* SCSS */
$brand: #2f474f;
/* SwiftUI */
Color(red: 0.184, green: 0.278, blue: 0.310)
/* Android */
Color.parseColor("#2f474f")
/* Flutter */
Color(0xFF2F474F)
/* Python / OpenCV (BGR) */
(79, 71, 47)

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 #2f474f · 9.84:1
Use #ffffffAAA at every size.
Aa
White text · 9.84:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.14:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2f474f as text scores 9.84:1 on white and 2.14:1 on black.

Accessibility — WCAG contrast

Aa
#2f474f on white: 9.84:1
AA ✓ pass · AA-large · AAA
Aa
#2f474f on black: 2.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #42464F
deuteranopia · #3D424F
tritanopia · #234A49

Color scale — 50 to 950

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

#F6F8F9
#EDF1F3
#D6E2E5
#B9CED5
#95B6C0
#729DAB
#5B8A99
#4C7380
#3D5C66
#2f474f
#1D2B2F
Base = 900Lightest = 50 · #F6F8F9Darkest = 950 · #1D2B2F
:root {
  --brand-50: #F6F8F9;
  --brand-100: #EDF1F3;
  --brand-200: #D6E2E5;
  --brand-300: #B9CED5;
  --brand-400: #95B6C0;
  --brand-500: #729DAB;
  --brand-600: #5B8A99;
  --brand-700: #4C7380;
  --brand-800: #3D5C66;
  --brand-900: #2f474f;
  --brand-950: #1D2B2F;
  --brand: #2f474f;
  --brand-ink: #ffffff;
}

Colors that work with #2f474f

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#F5F8F9
Tinted page background
Border#CCDBE1
Hairlines and dividers
Muted text#568190
Captions on the surface
Accent#522C2C
Second voice, not a rival
Dark variant#304850
Hover, pressed, headers
Light variant#EFF4F5
Selected rows, tints
Dark surface#152023
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 #2f474f

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#4F372F
Analogous left#2F4F47
Analogous right#2F374F
Split-complement 1#4F2F37
Split-complement 2#4F472F
Triadic 1#4F2F47
Triadic 2#474F2F
Tetradic#472F4F

RGB percentages

Red18.4%
Green27.8%
Blue31.0%

CMYK percentages

Cyan40.5%
Magenta10.1%
Yellow0.0%
Key (black)69.0%

Color previews

#2f474f text on a black background

contrast 2.14:1

Card sample

#2f474f text on a white background

contrast 9.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2f474f;
Background color
Panel with #2f474f background
background-color: #2f474f;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 71, 79, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 71, 79, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f474f;
background: linear-gradient(135deg, #2f474f, #2F324F);

Monochromatic scale

Palettes built from #2f474f

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.

#2f474f 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.

#2f474f, answered

What color is #2f474f?

#2f474f is a deep soft cyan, closest to Dark Slate Gray (ΔE2000 6.3). It sits at 195° on the hue wheel with 25% saturation and 25% lightness, which reads as cool.

What is the RGB value of #2f474f?

rgb(47, 71, 79) — 47 red, 71 green and 79 blue out of 255, or 18.4% / 27.8% / 31% by channel.

Is #2f474f a light or a dark color?

It is a dark color. Relative luminance is 0.0568 and perceived brightness is 26%, so white text on it reaches 9.84:1.

Should I use black or white text on #2f474f?

White. It scores 9.84:1 against #2f474f, versus 2.14:1 for black — AAA at any size.

What is the complementary color of #2f474f?

#4F372F sits directly opposite on the wheel. Softer options are the split-complements #4F2F37 and #4F472F, which give the same contrast with far less vibration.

What colors go well with #2f474f?

For interface work: #F5F8F9 as the surface, #CCDBE1 for borders, #568190 for secondary text, #522C2C as an accent and #304850 for hover and pressed states. For a palette, the analogous pair #2F4F47 and #2F374F stays calm, while #4F372F is the loudest partner.

What is #2f474f in CMYK for printing?

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

Is #2f474f warm or cool?

Cool — it scores 82 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2F4F4B; nudged cooler, #2E3F50.

Work with #2f474f in the Color Lab