Skip to content

#2f2639

a deep, soft violet · cool · closest name: Black

RGB
47, 38, 57
HSL
268°, 20%, 19%
CMYK
18, 33, 0, 78
Luminance
0.0229

At a glance

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

Hex
#2f2639
Hue
268°
violet
Saturation
20%
soft
Lightness
19%
deep
Brightness
22%
HSV value
Perceived
17%
weighted brightness
Luminance
0.0229
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Soft
Best ink
White
14.41:1
Closest name
Black
ΔE2000 16.1
Where it sits
Hue268° of 360°
Saturation20%
Lightness19%
Temperature
Warm ← → Cool60% 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#2f2639
RGBrgb(47, 38, 57)
HSLhsl(268, 20%, 19%)
CMYKcmyk(18%, 33%, 0%, 78%)
LABlab(16.9 8.8 -10.7)
LCHlch(16.9 13.8 309.6)
OKLCHoklch(0.287 0.036 305.9)
Decimal3089977
Display P3color(display-p3 0.184 0.149 0.224)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f2639 on white: 14.41:1
AA ✓ pass · AA-large · AAA
Aa
#2f2639 on black: 1.46:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #22293A
deuteranopia · #242A38
tritanopia · #2E292D

Color scale — 50 to 950

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

#F7F6F9
#F0EDF2
#DED8E4
#C6BCD2
#AA9ABC
#8E78A5
#796293
#65527A
#514162
#3D3248
#2f2639
Base = 950Lightest = 50 · #F7F6F9Darkest = 950 · #2f2639
:root {
  --brand-50: #F7F6F9;
  --brand-100: #F0EDF2;
  --brand-200: #DED8E4;
  --brand-300: #C6BCD2;
  --brand-400: #AA9ABC;
  --brand-500: #8E78A5;
  --brand-600: #796293;
  --brand-700: #65527A;
  --brand-800: #514162;
  --brand-900: #3D3248;
  --brand-950: #2f2639;
  --brand: #2f2639;
  --brand-ink: #ffffff;
}

Colors that work with #2f2639

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#F7F6F9
Tinted page background
Border#D6CEDE
Hairlines and dividers
Muted text#725C8A
Captions on the surface
Accent#363B24
Second voice, not a rival
Dark variant#3F334D
Hover, pressed, headers
Light variant#F2F0F5
Selected rows, tints
Dark surface#1C1622
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 #2f2639

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#303926
Analogous left#262639
Analogous right#382639
Split-complement 1#393826
Split-complement 2#263926
Triadic 1#392F26
Triadic 2#26392F
Tetradic#392626

RGB percentages

Red18.4%
Green14.9%
Blue22.4%

CMYK percentages

Cyan17.5%
Magenta33.3%
Yellow0.0%
Key (black)77.6%

Color previews

#2f2639 text on a black background

contrast 1.46:1

Card sample

#2f2639 text on a white background

contrast 14.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f2639

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.

#2f2639 in the real world

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

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#2f2639, answered

What color is #2f2639?

#2f2639 is a deep soft violet, closest to Black (ΔE2000 16.1). It sits at 268° on the hue wheel with 20% saturation and 19% lightness, which reads as cool.

What is the RGB value of #2f2639?

rgb(47, 38, 57) — 47 red, 38 green and 57 blue out of 255, or 18.4% / 14.9% / 22.4% by channel.

Is #2f2639 a light or a dark color?

It is a dark color. Relative luminance is 0.0229 and perceived brightness is 17%, so white text on it reaches 14.41:1.

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

White. It scores 14.41:1 against #2f2639, versus 1.46:1 for black — AAA at any size.

What is the complementary color of #2f2639?

#303926 sits directly opposite on the wheel. Softer options are the split-complements #393826 and #263926, which give the same contrast with far less vibration.

What colors go well with #2f2639?

For interface work: #F7F6F9 as the surface, #D6CEDE for borders, #725C8A for secondary text, #363B24 as an accent and #3F334D for hover and pressed states. For a palette, the analogous pair #262639 and #382639 stays calm, while #303926 is the loudest partner.

What is #2f2639 in CMYK for printing?

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

Is #2f2639 warm or cool?

Cool — it scores 60 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #362639; nudged cooler, #27253A.

Work with #2f2639 in the Color Lab