Skip to content

#0c1908

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

RGB
12, 25, 8
HSL
106°, 52%, 7%
CMYK
52, 0, 68, 90
Luminance
0.0079

At a glance

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

Hex
#0c1908
Hue
106°
green
Saturation
52%
vivid
Lightness
7%
deep
Brightness
10%
HSV value
Perceived
8%
weighted brightness
Luminance
0.0079
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Green
Tone
Vivid
Best ink
White
18.13:1
Closest name
Black
ΔE2000 11.8
Where it sits
Hue106° of 360°
Saturation52%
Lightness7%
Temperature
Warm ← → Cool57% cool

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

Every format

HEX#0c1908
RGBrgb(12, 25, 8)
HSLhsl(106, 52%, 7%)
CMYKcmyk(52%, 0%, 68%, 90%)
LABlab(7.1 -8.6 7.3)
LCHlch(7.1 11.2 139.7)
OKLCHoklch(0.196 0.037 138.5)
Decimal792840
Display P3color(display-p3 0.047 0.098 0.031)

Copy-ready code

/* CSS */
color: #0c1908;
background-color: #0c1908;
/* Tailwind (arbitrary) */
class="text-[#0c1908] bg-[#0c1908]"
/* SCSS */
$brand: #0c1908;
/* SwiftUI */
Color(red: 0.047, green: 0.098, blue: 0.031)
/* Android */
Color.parseColor("#0c1908")
/* Flutter */
Color(0xFF0C1908)
/* Python / OpenCV (BGR) */
(8, 25, 12)

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

Accessibility — WCAG contrast

Aa
#0c1908 on white: 18.13:1
AA ✓ pass · AA-large · AAA
Aa
#0c1908 on black: 1.16:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1A1707
deuteranopia · #181509
tritanopia · #0B1815

Color scale — 50 to 950

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

#F6FAF4
#ECF6EA
#D6EDCF
#B8E4AA
#94D680
#70C955
#59B93B
#4A9B31
#3B7C28
#2E5A20
#0c1908
Base = 950Lightest = 50 · #F6FAF4Darkest = 950 · #0c1908
:root {
  --brand-50: #F6FAF4;
  --brand-100: #ECF6EA;
  --brand-200: #D6EDCF;
  --brand-300: #B8E4AA;
  --brand-400: #94D680;
  --brand-500: #70C955;
  --brand-600: #59B93B;
  --brand-700: #4A9B31;
  --brand-800: #3B7C28;
  --brand-900: #2E5A20;
  --brand-950: #0c1908;
  --brand: #0c1908;
  --brand-ink: #ffffff;
}

Colors that work with #0c1908

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#F6FAF4
Tinted page background
Border#CBEBC1
Hairlines and dividers
Muted text#5D9B4B
Captions on the surface
Accent#11071A
Second voice, not a rival
Dark variant#2E611F
Hover, pressed, headers
Light variant#EFF9EC
Selected rows, tints
Dark surface#182414
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 #0c1908

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#150819
Analogous left#151908
Analogous right#08190D
Split-complement 1#0D0819
Split-complement 2#190815
Triadic 1#080C19
Triadic 2#19080C
Tetradic#081519

RGB percentages

Red4.7%
Green9.8%
Blue3.1%

CMYK percentages

Cyan52.0%
Magenta0.0%
Yellow68.0%
Key (black)90.2%

Color previews

#0c1908 text on a black background

contrast 1.16:1

Card sample

#0c1908 text on a white background

contrast 18.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0c1908;
Background color
Panel with #0c1908 background
background-color: #0c1908;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(12, 25, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 25, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0c1908;
background: linear-gradient(135deg, #0c1908, #08190F);

Monochromatic scale

Palettes built from #0c1908

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.

#0c1908 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.

#0c1908, answered

What color is #0c1908?

#0c1908 is a deep vivid green, closest to Black (ΔE2000 11.8). It sits at 106° on the hue wheel with 52% saturation and 7% lightness, which reads as neutral.

What is the RGB value of #0c1908?

rgb(12, 25, 8) — 12 red, 25 green and 8 blue out of 255, or 4.7% / 9.8% / 3.1% by channel.

Is #0c1908 a light or a dark color?

It is a dark color. Relative luminance is 0.0079 and perceived brightness is 8%, so white text on it reaches 18.13:1.

Should I use black or white text on #0c1908?

White. It scores 18.13:1 against #0c1908, versus 1.16:1 for black — AAA at any size.

What is the complementary color of #0c1908?

#150819 sits directly opposite on the wheel. Softer options are the split-complements #0D0819 and #190815, which give the same contrast with far less vibration.

What colors go well with #0c1908?

For interface work: #F6FAF4 as the surface, #CBEBC1 for borders, #5D9B4B for secondary text, #11071A as an accent and #2E611F for hover and pressed states. For a palette, the analogous pair #151908 and #08190D stays calm, while #150819 is the loudest partner.

What is #0c1908 in CMYK for printing?

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

Is #0c1908 warm or cool?

Neutral — it scores 57 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #121908; nudged cooler, #08190A.

Work with #0c1908 in the Color Lab