Skip to content

#2b0f39

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

RGB
43, 15, 57
HSL
280°, 58%, 14%
CMYK
25, 74, 0, 78
Luminance
0.0115

At a glance

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

Hex
#2b0f39
Hue
280°
violet
Saturation
58%
vivid
Lightness
14%
deep
Brightness
22%
HSV value
Perceived
13%
weighted brightness
Luminance
0.0115
WCAG relative
Temperature
Cool
61/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
17.07:1
Closest name
Midnight Blue
ΔE2000 13.1
Where it sits
Hue280° of 360°
Saturation58%
Lightness14%
Temperature
Warm ← → Cool61% 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#2b0f39
RGBrgb(43, 15, 57)
HSLhsl(280, 58%, 14%)
CMYKcmyk(25%, 74%, 0%, 78%)
LABlab(10.2 22.9 -21.3)
LCHlch(10.2 31.3 317.1)
OKLCHoklch(0.236 0.081 312.5)
Decimal2821945
Display P3color(display-p3 0.169 0.059 0.224)

Copy-ready code

/* CSS */
color: #2b0f39;
background-color: #2b0f39;
/* Tailwind (arbitrary) */
class="text-[#2b0f39] bg-[#2b0f39]"
/* SCSS */
$brand: #2b0f39;
/* SwiftUI */
Color(red: 0.169, green: 0.059, blue: 0.224)
/* Android */
Color.parseColor("#2b0f39")
/* Flutter */
Color(0xFF2B0F39)
/* Python / OpenCV (BGR) */
(57, 15, 43)

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

Accessibility — WCAG contrast

Aa
#2b0f39 on white: 17.07:1
AA ✓ pass · AA-large · AAA
Aa
#2b0f39 on black: 1.23:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #011A3A
deuteranopia · #0C1C38
tritanopia · #291722

Color scale — 50 to 950

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

#F9F4FB
#F2E9F7
#E4CDEF
#D2A6E8
#BB7ADC
#A54DD0
#9233C2
#7A2BA1
#612281
#481C5E
#2b0f39
Base = 950Lightest = 50 · #F9F4FBDarkest = 950 · #2b0f39
:root {
  --brand-50: #F9F4FB;
  --brand-100: #F2E9F7;
  --brand-200: #E4CDEF;
  --brand-300: #D2A6E8;
  --brand-400: #BB7ADC;
  --brand-500: #A54DD0;
  --brand-600: #9233C2;
  --brand-700: #7A2BA1;
  --brand-800: #612281;
  --brand-900: #481C5E;
  --brand-950: #2b0f39;
  --brand: #2b0f39;
  --brand-ink: #ffffff;
}

Colors that work with #2b0f39

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#F8F4FA
Tinted page background
Border#DEC0ED
Hairlines and dividers
Muted text#804B9B
Captions on the surface
Accent#283A0E
Second voice, not a rival
Dark variant#4C1B65
Hover, pressed, headers
Light variant#F5EBFA
Selected rows, tints
Dark surface#1F1424
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 #2b0f39

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • 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#1D390F
Analogous left#160F39
Analogous right#390F32
Split-complement 1#32390F
Split-complement 2#0F3916
Triadic 1#392B0F
Triadic 2#0F392B
Tetradic#39160F

RGB percentages

Red16.9%
Green5.9%
Blue22.4%

CMYK percentages

Cyan24.6%
Magenta73.7%
Yellow0.0%
Key (black)77.6%

Color previews

#2b0f39 text on a black background

contrast 1.23:1

Card sample

#2b0f39 text on a white background

contrast 17.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(43, 15, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(43, 15, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2b0f39;
background: linear-gradient(135deg, #2b0f39, #390F2B);

Monochromatic scale

Palettes built from #2b0f39

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.

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

#2b0f39, answered

What color is #2b0f39?

#2b0f39 is a deep vivid violet, closest to Midnight Blue (ΔE2000 13.1). It sits at 280° on the hue wheel with 58% saturation and 14% lightness, which reads as cool.

What is the RGB value of #2b0f39?

rgb(43, 15, 57) — 43 red, 15 green and 57 blue out of 255, or 16.9% / 5.9% / 22.4% by channel.

Is #2b0f39 a light or a dark color?

It is a dark color. Relative luminance is 0.0115 and perceived brightness is 13%, so white text on it reaches 17.07:1.

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

White. It scores 17.07:1 against #2b0f39, versus 1.23:1 for black — AAA at any size.

What is the complementary color of #2b0f39?

#1D390F sits directly opposite on the wheel. Softer options are the split-complements #32390F and #0F3916, which give the same contrast with far less vibration.

What colors go well with #2b0f39?

For interface work: #F8F4FA as the surface, #DEC0ED for borders, #804B9B for secondary text, #283A0E as an accent and #4C1B65 for hover and pressed states. For a palette, the analogous pair #160F39 and #390F32 stays calm, while #1D390F is the loudest partner.

What is #2b0f39 in CMYK for printing?

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

Is #2b0f39 warm or cool?

Cool — it scores 61 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #390F38; nudged cooler, #1B0E3A.

Work with #2b0f39 in the Color Lab