Skip to content

#2f2d41

a deep, soft blue · cool · closest name: Dark Slate Blue

RGB
47, 45, 65
HSL
246°, 18%, 22%
CMYK
28, 31, 0, 75
Luminance
0.0286

At a glance

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

Hex
#2f2d41
Hue
246°
blue
Saturation
18%
soft
Lightness
22%
deep
Brightness
25%
HSV value
Perceived
19%
weighted brightness
Luminance
0.0286
WCAG relative
Temperature
Cool
66/100 cool
Color family
Blue
Tone
Soft
Best ink
White
13.35:1
Closest name
Dark Slate Blue
ΔE2000 16.6
Where it sits
Hue246° of 360°
Saturation18%
Lightness22%
Temperature
Warm ← → Cool66% 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#2f2d41
RGBrgb(47, 45, 65)
HSLhsl(246, 18%, 22%)
CMYKcmyk(28%, 31%, 0%, 75%)
LABlab(19.5 6.2 -12.3)
LCHlch(19.5 13.7 296.8)
OKLCHoklch(0.308 0.036 288.7)
Decimal3091777
Display P3color(display-p3 0.184 0.176 0.255)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f2d41 on white: 13.35:1
AA ✓ pass · AA-large · AAA
Aa
#2f2d41 on black: 1.57:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #283042
deuteranopia · #282F40
tritanopia · #2B3034

Color scale — 50 to 950

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

#F6F6F8
#EEEEF2
#DAD9E3
#BFBDD1
#9F9CBA
#7E7AA3
#696491
#575379
#464360
#2f2d41
#21202D
Base = 900Lightest = 50 · #F6F6F8Darkest = 950 · #21202D
:root {
  --brand-50: #F6F6F8;
  --brand-100: #EEEEF2;
  --brand-200: #DAD9E3;
  --brand-300: #BFBDD1;
  --brand-400: #9F9CBA;
  --brand-500: #7E7AA3;
  --brand-600: #696491;
  --brand-700: #575379;
  --brand-800: #464360;
  --brand-900: #2f2d41;
  --brand-950: #21202D;
  --brand: #2f2d41;
  --brand-ink: #ffffff;
}

Colors that work with #2f2d41

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#F6F6F9
Tinted page background
Border#D0CFDE
Hairlines and dividers
Muted text#625E88
Captions on the surface
Accent#43402B
Second voice, not a rival
Dark variant#36344B
Hover, pressed, headers
Light variant#F0F0F5
Selected rows, tints
Dark surface#181721
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 #2f2d41

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
  • 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#3F412D
Analogous left#2D3541
Analogous right#392D41
Split-complement 1#41392D
Split-complement 2#35412D
Triadic 1#412F2D
Triadic 2#2D412F
Tetradic#412D35

RGB percentages

Red18.4%
Green17.6%
Blue25.5%

CMYK percentages

Cyan27.7%
Magenta30.8%
Yellow0.0%
Key (black)74.5%

Color previews

#2f2d41 text on a black background

contrast 1.57:1

Card sample

#2f2d41 text on a white background

contrast 13.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f2d41

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.

#2f2d41 in the real world

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

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#2f2d41, answered

What color is #2f2d41?

#2f2d41 is a deep soft blue, closest to Dark Slate Blue (ΔE2000 16.6). It sits at 246° on the hue wheel with 18% saturation and 22% lightness, which reads as cool.

What is the RGB value of #2f2d41?

rgb(47, 45, 65) — 47 red, 45 green and 65 blue out of 255, or 18.4% / 17.6% / 25.5% by channel.

Is #2f2d41 a light or a dark color?

It is a dark color. Relative luminance is 0.0286 and perceived brightness is 19%, so white text on it reaches 13.35:1.

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

White. It scores 13.35:1 against #2f2d41, versus 1.57:1 for black — AAA at any size.

What is the complementary color of #2f2d41?

#3F412D sits directly opposite on the wheel. Softer options are the split-complements #41392D and #35412D, which give the same contrast with far less vibration.

What colors go well with #2f2d41?

For interface work: #F6F6F9 as the surface, #D0CFDE for borders, #625E88 for secondary text, #43402B as an accent and #36344B for hover and pressed states. For a palette, the analogous pair #2D3541 and #392D41 stays calm, while #3F412D is the loudest partner.

What is #2f2d41 in CMYK for printing?

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

Is #2f2d41 warm or cool?

Cool — it scores 66 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #362D41; nudged cooler, #2C3242.

Work with #2f2d41 in the Color Lab