Skip to content

#2b2004

a deep, electric yellow · warm · closest name: Black

RGB
43, 32, 4
HSL
43°, 83%, 9%
CMYK
0, 26, 91, 83
Luminance
0.0156

At a glance

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

Hex
#2b2004
Hue
43°
yellow
Saturation
83%
electric
Lightness
9%
deep
Brightness
17%
HSV value
Perceived
13%
weighted brightness
Luminance
0.0156
WCAG relative
Temperature
Warm
11/100 cool
Color family
Yellow
Tone
Electric
Best ink
White
16.02:1
Closest name
Black
ΔE2000 14.9
Where it sits
Hue43° of 360°
Saturation83%
Lightness9%
Temperature
Warm ← → Cool11% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#2b2004
RGBrgb(43, 32, 4)
HSLhsl(43, 83%, 9%)
CMYKcmyk(0%, 26%, 91%, 83%)
LABlab(13.0 1.6 17.6)
LCHlch(13.0 17.6 84.9)
OKLCHoklch(0.250 0.046 87.3)
Decimal2826244
Display P3color(display-p3 0.169 0.125 0.016)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2b2004 on white: 16.02:1
AA ✓ pass · AA-large · AAA
Aa
#2b2004 on black: 1.31:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #252002
deuteranopia · #282305
tritanopia · #301C1A

Color scale — 50 to 950

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

#FCFAF2
#FAF4E6
#F6E8C6
#F5DB98
#F1C965
#ECB732
#E0A715
#BB8B11
#956F0E
#6C520E
#2b2004
Base = 950Lightest = 50 · #FCFAF2Darkest = 950 · #2b2004
:root {
  --brand-50: #FCFAF2;
  --brand-100: #FAF4E6;
  --brand-200: #F6E8C6;
  --brand-300: #F5DB98;
  --brand-400: #F1C965;
  --brand-500: #ECB732;
  --brand-600: #E0A715;
  --brand-700: #BB8B11;
  --brand-800: #956F0E;
  --brand-900: #6C520E;
  --brand-950: #2b2004;
  --brand: #2b2004;
  --brand-ink: #ffffff;
}

Colors that work with #2b2004

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#FAF9F4
Tinted page background
Border#EDE0C0
Hairlines and dividers
Muted text#9B844B
Captions on the surface
Accent#03192C
Second voice, not a rival
Dark variant#75570B
Hover, pressed, headers
Light variant#FDF7E8
Selected rows, tints
Dark surface#242014
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 #2b2004

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
  • Thin strokes and 1px borders — they disappear on light UI
  • 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#040F2B
Analogous left#2B0C04
Analogous right#222B04
Split-complement 1#04222B
Split-complement 2#0C042B
Triadic 1#042B20
Triadic 2#20042B
Tetradic#042B0C

RGB percentages

Red16.9%
Green12.5%
Blue1.6%

CMYK percentages

Cyan0.0%
Magenta25.6%
Yellow90.7%
Key (black)83.1%

Color previews

#2b2004 text on a black background

contrast 1.31:1

Card sample

#2b2004 text on a white background

contrast 16.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(43, 32, 4, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(43, 32, 4, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2b2004;
background: linear-gradient(135deg, #2b2004, #1C2B04);

Monochromatic scale

Palettes built from #2b2004

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.

#2b2004 in the real world

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

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#2b2004, answered

What color is #2b2004?

#2b2004 is a deep electric yellow, closest to Black (ΔE2000 14.9). It sits at 43° on the hue wheel with 83% saturation and 9% lightness, which reads as warm.

What is the RGB value of #2b2004?

rgb(43, 32, 4) — 43 red, 32 green and 4 blue out of 255, or 16.9% / 12.5% / 1.6% by channel.

Is #2b2004 a light or a dark color?

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

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

White. It scores 16.02:1 against #2b2004, versus 1.31:1 for black — AAA at any size.

What is the complementary color of #2b2004?

#040F2B sits directly opposite on the wheel. Softer options are the split-complements #04222B and #0C042B, which give the same contrast with far less vibration.

What colors go well with #2b2004?

For interface work: #FAF9F4 as the surface, #EDE0C0 for borders, #9B844B for secondary text, #03192C as an accent and #75570B for hover and pressed states. For a palette, the analogous pair #2B0C04 and #222B04 stays calm, while #040F2B is the loudest partner.

What is #2b2004 in CMYK for printing?

cmyk(0%, 26%, 91%, 83%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #2b2004 warm or cool?

Warm — it scores 11 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2B1604; nudged cooler, #282B04.

Work with #2b2004 in the Color Lab