Skip to content

#2f2349

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

RGB
47, 35, 73
HSL
259°, 35%, 21%
CMYK
36, 52, 0, 71
Luminance
0.0229

At a glance

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

Hex
#2f2349
Hue
259°
violet
Saturation
35%
soft
Lightness
21%
deep
Brightness
29%
HSV value
Perceived
17%
weighted brightness
Luminance
0.0229
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Soft
Best ink
White
14.41:1
Closest name
Midnight Blue
ΔE2000 11.5
Where it sits
Hue259° of 360°
Saturation35%
Lightness21%
Temperature
Warm ← → Cool73% 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#2f2349
RGBrgb(47, 35, 73)
HSLhsl(259, 35%, 21%)
CMYKcmyk(36%, 52%, 0%, 71%)
LABlab(16.9 15.7 -21.7)
LCHlch(16.9 26.8 305.7)
OKLCHoklch(0.290 0.068 296.5)
Decimal3089225
Display P3color(display-p3 0.184 0.137 0.286)

Copy-ready code

/* CSS */
color: #2f2349;
background-color: #2f2349;
/* Tailwind (arbitrary) */
class="text-[#2f2349] bg-[#2f2349]"
/* SCSS */
$brand: #2f2349;
/* SwiftUI */
Color(red: 0.184, green: 0.137, blue: 0.286)
/* Android */
Color.parseColor("#2f2349")
/* Flutter */
Color(0xFF2F2349)
/* Python / OpenCV (BGR) */
(73, 35, 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 #2f2349 · 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: #2f2349 as text scores 14.41:1 on white and 1.46:1 on black.

Accessibility — WCAG contrast

Aa
#2f2349 on white: 14.41:1
AA ✓ pass · AA-large · AAA
Aa
#2f2349 on black: 1.46:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #172A4A
deuteranopia · #192948
tritanopia · #292A32

Color scale — 50 to 950

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

#F7F5F9
#EEEBF4
#DAD4E8
#C0B3DB
#A08DC8
#8067B6
#6A4FA5
#59428A
#47356E
#2f2349
#221A33
Base = 900Lightest = 50 · #F7F5F9Darkest = 950 · #221A33
:root {
  --brand-50: #F7F5F9;
  --brand-100: #EEEBF4;
  --brand-200: #DAD4E8;
  --brand-300: #C0B3DB;
  --brand-400: #A08DC8;
  --brand-500: #8067B6;
  --brand-600: #6A4FA5;
  --brand-700: #59428A;
  --brand-800: #47356E;
  --brand-900: #2f2349;
  --brand-950: #221A33;
  --brand: #2f2349;
  --brand-ink: #ffffff;
}

Colors that work with #2f2349

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#D1C8E5
Hairlines and dividers
Muted text#644B9B
Captions on the surface
Accent#484B21
Second voice, not a rival
Dark variant#372956
Hover, pressed, headers
Light variant#F1EEF7
Selected rows, tints
Dark surface#191424
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 #2f2349

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#3D4923
Analogous left#232A49
Analogous right#422349
Split-complement 1#494223
Split-complement 2#2A4923
Triadic 1#492F23
Triadic 2#23492F
Tetradic#49232A

RGB percentages

Red18.4%
Green13.7%
Blue28.6%

CMYK percentages

Cyan35.6%
Magenta52.1%
Yellow0.0%
Key (black)71.4%

Color previews

#2f2349 text on a black background

contrast 1.46:1

Card sample

#2f2349 text on a white background

contrast 14.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f2349

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.

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

#2f2349, answered

What color is #2f2349?

#2f2349 is a deep soft violet, closest to Midnight Blue (ΔE2000 11.5). It sits at 259° on the hue wheel with 35% saturation and 21% lightness, which reads as cool.

What is the RGB value of #2f2349?

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

Is #2f2349 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 #2f2349?

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

What is the complementary color of #2f2349?

#3D4923 sits directly opposite on the wheel. Softer options are the split-complements #494223 and #2A4923, which give the same contrast with far less vibration.

What colors go well with #2f2349?

For interface work: #F6F5FA as the surface, #D1C8E5 for borders, #644B9B for secondary text, #484B21 as an accent and #372956 for hover and pressed states. For a palette, the analogous pair #232A49 and #422349 stays calm, while #3D4923 is the loudest partner.

What is #2f2349 in CMYK for printing?

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

Is #2f2349 warm or cool?

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

Work with #2f2349 in the Color Lab