Skip to content

#040c03

a deep, vivid green · cool · closest name: Black

RGB
4, 12, 3
HSL
113°, 60%, 3%
CMYK
67, 0, 75, 95
Luminance
0.0030

At a glance

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

Hex
#040c03
Hue
113°
green
Saturation
60%
vivid
Lightness
3%
deep
Brightness
5%
HSV value
Perceived
4%
weighted brightness
Luminance
0.0030
WCAG relative
Temperature
Cool
60/100 cool
Color family
Green
Tone
Vivid
Best ink
White
19.83:1
Closest name
Black
ΔE2000 5.3
Where it sits
Hue113° of 360°
Saturation60%
Lightness3%
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#040c03
RGBrgb(4, 12, 3)
HSLhsl(113, 60%, 3%)
CMYKcmyk(67%, 0%, 75%, 95%)
LABlab(2.7 -3.4 2.7)
LCHlch(2.7 4.3 141.5)
OKLCHoklch(0.141 0.028 140.5)
Decimal265219
Display P3color(display-p3 0.016 0.047 0.012)

Copy-ready code

/* CSS */
color: #040c03;
background-color: #040c03;
/* Tailwind (arbitrary) */
class="text-[#040c03] bg-[#040c03]"
/* SCSS */
$brand: #040c03;
/* SwiftUI */
Color(red: 0.016, green: 0.047, blue: 0.012)
/* Android */
Color.parseColor("#040c03")
/* Flutter */
Color(0xFF040C03)
/* Python / OpenCV (BGR) */
(3, 12, 4)

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

Accessibility — WCAG contrast

Aa
#040c03 on white: 19.83:1
AA ✓ pass · AA-large · AAA
Aa
#040c03 on black: 1.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0D0A03
deuteranopia · #0B0903
tritanopia · #040B09

Color scale — 50 to 950

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

#F5FBF4
#EAF7E9
#D0EFCC
#ADE9A5
#84DD78
#5BD24B
#41C431
#36A329
#2C8321
#235F1B
#040c03
Base = 950Lightest = 50 · #F5FBF4Darkest = 950 · #040c03
:root {
  --brand-50: #F5FBF4;
  --brand-100: #EAF7E9;
  --brand-200: #D0EFCC;
  --brand-300: #ADE9A5;
  --brand-400: #84DD78;
  --brand-500: #5BD24B;
  --brand-600: #41C431;
  --brand-700: #36A329;
  --brand-800: #2C8321;
  --brand-900: #235F1B;
  --brand-950: #040c03;
  --brand: #040c03;
  --brand-ink: #ffffff;
}

Colors that work with #040c03

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#F5FAF4
Tinted page background
Border#C5EDC0
Hairlines and dividers
Muted text#549B4B
Captions on the surface
Accent#09030C
Second voice, not a rival
Dark variant#22661A
Hover, pressed, headers
Light variant#ECFAEB
Selected rows, tints
Dark surface#162414
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 #040c03

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#0B030C
Analogous left#080C03
Analogous right#030C06
Split-complement 1#06030C
Split-complement 2#0C0308
Triadic 1#03040C
Triadic 2#0C0304
Tetradic#03080C

RGB percentages

Red1.6%
Green4.7%
Blue1.2%

CMYK percentages

Cyan66.7%
Magenta0.0%
Yellow75.0%
Key (black)95.3%

Color previews

#040c03 text on a black background

contrast 1.06:1

Card sample

#040c03 text on a white background

contrast 19.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #040c03;
Background color
Panel with #040c03 background
background-color: #040c03;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(4, 12, 3, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(4, 12, 3, 0.45);
Border & gradient
Gradient panel
border: 3px solid #040c03;
background: linear-gradient(135deg, #040c03, #030C08);

Monochromatic scale

Palettes built from #040c03

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.

#040c03 in the real world

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

Industries
SustainabilityFinanceHealth and wellnessAgriculture
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#040c03, answered

What color is #040c03?

#040c03 is a deep vivid green, closest to Black (ΔE2000 5.3). It sits at 113° on the hue wheel with 60% saturation and 3% lightness, which reads as cool.

What is the RGB value of #040c03?

rgb(4, 12, 3) — 4 red, 12 green and 3 blue out of 255, or 1.6% / 4.7% / 1.2% by channel.

Is #040c03 a light or a dark color?

It is a dark color. Relative luminance is 0.0030 and perceived brightness is 4%, so white text on it reaches 19.83:1.

Should I use black or white text on #040c03?

White. It scores 19.83:1 against #040c03, versus 1.06:1 for black — AAA at any size.

What is the complementary color of #040c03?

#0B030C sits directly opposite on the wheel. Softer options are the split-complements #06030C and #0C0308, which give the same contrast with far less vibration.

What colors go well with #040c03?

For interface work: #F5FAF4 as the surface, #C5EDC0 for borders, #549B4B for secondary text, #09030C as an accent and #22661A for hover and pressed states. For a palette, the analogous pair #080C03 and #030C06 stays calm, while #0B030C is the loudest partner.

What is #040c03 in CMYK for printing?

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

Is #040c03 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 #070C03; nudged cooler, #030C05.

Work with #040c03 in the Color Lab