Skip to content

#2f2649

a deep, soft violet · cool · closest name: Midnight Blue

RGB
47, 38, 73
HSL
255°, 32%, 22%
CMYK
36, 48, 0, 71
Luminance
0.0247

At a glance

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

Hex
#2f2649
Hue
255°
violet
Saturation
32%
soft
Lightness
22%
deep
Brightness
29%
HSV value
Perceived
18%
weighted brightness
Luminance
0.0247
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Soft
Best ink
White
14.05:1
Closest name
Midnight Blue
ΔE2000 12.2
Where it sits
Hue255° of 360°
Saturation32%
Lightness22%
Temperature
Warm ← → Cool72% 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#2f2649
RGBrgb(47, 38, 73)
HSLhsl(255, 32%, 22%)
CMYKcmyk(36%, 48%, 0%, 71%)
LABlab(17.8 13.6 -20.4)
LCHlch(17.8 24.5 303.6)
OKLCHoklch(0.297 0.063 294.1)
Decimal3089993
Display P3color(display-p3 0.184 0.149 0.286)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f2649 on white: 14.05:1
AA ✓ pass · AA-large · AAA
Aa
#2f2649 on black: 1.49:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1B2C4A
deuteranopia · #1C2B48
tritanopia · #292C34

Color scale — 50 to 950

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

#F6F5F9
#EEECF3
#D9D5E7
#BEB5D9
#9E90C5
#7E6BB2
#6854A1
#564686
#45386B
#2f2649
#211B31
Base = 900Lightest = 50 · #F6F5F9Darkest = 950 · #211B31
:root {
  --brand-50: #F6F5F9;
  --brand-100: #EEECF3;
  --brand-200: #D9D5E7;
  --brand-300: #BEB5D9;
  --brand-400: #9E90C5;
  --brand-500: #7E6BB2;
  --brand-600: #6854A1;
  --brand-700: #564686;
  --brand-800: #45386B;
  --brand-900: #2f2649;
  --brand-950: #211B31;
  --brand: #2f2649;
  --brand-ink: #ffffff;
}

Colors that work with #2f2649

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#F6F5FA
Tinted page background
Border#D0C9E3
Hairlines and dividers
Muted text#614F97
Captions on the surface
Accent#4B4B24
Second voice, not a rival
Dark variant#362C54
Hover, pressed, headers
Light variant#F0EEF6
Selected rows, tints
Dark surface#181424
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 #2f2649

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#404926
Analogous left#262F49
Analogous right#412649
Split-complement 1#494126
Split-complement 2#2F4926
Triadic 1#492F26
Triadic 2#26492F
Tetradic#49262F

RGB percentages

Red18.4%
Green14.9%
Blue28.6%

CMYK percentages

Cyan35.6%
Magenta47.9%
Yellow0.0%
Key (black)71.4%

Color previews

#2f2649 text on a black background

contrast 1.49:1

Card sample

#2f2649 text on a white background

contrast 14.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f2649

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.

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

#2f2649, answered

What color is #2f2649?

#2f2649 is a deep soft violet, closest to Midnight Blue (ΔE2000 12.2). It sits at 255° on the hue wheel with 32% saturation and 22% lightness, which reads as cool.

What is the RGB value of #2f2649?

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

Is #2f2649 a light or a dark color?

It is a dark color. Relative luminance is 0.0247 and perceived brightness is 18%, so white text on it reaches 14.05:1.

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

White. It scores 14.05:1 against #2f2649, versus 1.49:1 for black — AAA at any size.

What is the complementary color of #2f2649?

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

What colors go well with #2f2649?

For interface work: #F6F5FA as the surface, #D0C9E3 for borders, #614F97 for secondary text, #4B4B24 as an accent and #362C54 for hover and pressed states. For a palette, the analogous pair #262F49 and #412649 stays calm, while #404926 is the loudest partner.

What is #2f2649 in CMYK for printing?

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

Is #2f2649 warm or cool?

Cool — it scores 72 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #3C2649; nudged cooler, #25294A.

Work with #2f2649 in the Color Lab