#08321b
a deep, vivid green · cool · closest name: Dark Slate Gray
At a glance
Every number on this page in one read: what #08321b is made of, how bright it looks, and which way it leans.
Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #08321b |
| RGB | rgb(8, 50, 27) |
| HSL | hsl(147, 72%, 11%) |
| CMYK | cmyk(84%, 0%, 46%, 80%) |
| LAB | lab(17.5 -20.8 10.6) |
| LCH | lch(17.5 23.4 152.9) |
| OKLCH | oklch(0.282 0.062 154.7) |
| Decimal | 537115 |
| Display P3 | color(display-p3 0.031 0.196 0.106) |
Copy-ready code
/* CSS */
color: #08321b;
background-color: #08321b;
/* Tailwind (arbitrary) */
class="text-[#08321b] bg-[#08321b]"
/* SCSS */
$brand: #08321b;
/* SwiftUI */
Color(red: 0.031, green: 0.196, blue: 0.106)
/* Android */
Color.parseColor("#08321b")
/* Flutter */
Color(0xFF08321B)
/* Python / OpenCV (BGR) */
(27, 50, 8)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #08321b 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.
:root {
--brand-50: #F3FCF7;
--brand-100: #E7F8EF;
--brand-200: #C9F3DC;
--brand-300: #9EF0C3;
--brand-400: #6EE8A5;
--brand-500: #3EE087;
--brand-600: #22D372;
--brand-700: #1CB05F;
--brand-800: #178D4C;
--brand-900: #146639;
--brand-950: #08321b;
--brand: #08321b;
--brand-ink: #ffffff;
}Colors that work with #08321b
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #08321b
Derived from its contrast, chroma and lightness — not from taste.
- ✓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
- ⚠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 | #32081F | Directly opposite — maximum tension | |
| Analogous left | #0A3208 | Neighbour, quieter | |
| Analogous right | #083230 | Neighbour, quieter | |
| Split-complement 1 | #300832 | Contrast without the clash | |
| Split-complement 2 | #32080A | Contrast without the clash | |
| Triadic 1 | #1B0832 | Even thirds — balanced and loud | |
| Triadic 2 | #321B08 | Even thirds — balanced and loud | |
| Tetradic | #080A32 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#08321b text on a black background
contrast 1.48:1
#08321b text on a white background
contrast 14.17:1
CSS3 live lab
The quick brown fox
color: #08321b;
background-color: #08321b;
Glowing headline
text-shadow: 2px 2px 8px #08321b;
Soft neon halo
text-shadow: 0 0 14px rgba(8, 50, 27, 0.45);
box-shadow: 0 12px 32px -8px rgba(8, 50, 27, 0.45);
border: 3px solid #08321b; background: linear-gradient(135deg, #08321b, #082D32);
Monochromatic scale
Palettes built from #08321b
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.
Closest color with a full write-up: Hunter Green (#355e3b) — ΔE2000 14.2 away, with its history, psychology and brand usage.
#08321b in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#08321b, answered
What color is #08321b?
#08321b is a deep vivid green, closest to Dark Slate Gray (ΔE2000 15.4). It sits at 147° on the hue wheel with 72% saturation and 11% lightness, which reads as cool.
What is the RGB value of #08321b?
rgb(8, 50, 27) — 8 red, 50 green and 27 blue out of 255, or 3.1% / 19.6% / 10.6% by channel.
Is #08321b a light or a dark color?
It is a dark color. Relative luminance is 0.0241 and perceived brightness is 16%, so white text on it reaches 14.17:1.
Should I use black or white text on #08321b?
White. It scores 14.17:1 against #08321b, versus 1.48:1 for black — AAA at any size.
What is the complementary color of #08321b?
#32081F sits directly opposite on the wheel. Softer options are the split-complements #300832 and #32080A, which give the same contrast with far less vibration.
What colors go well with #08321b?
For interface work: #F4FAF7 as the surface, #C0EDD4 for borders, #4B9B6F for secondary text, #33072A as an accent and #126E3B for hover and pressed states. For a palette, the analogous pair #0A3208 and #083230 stays calm, while #32081F is the loudest partner.
What is #08321b in CMYK for printing?
cmyk(84%, 0%, 46%, 80%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #08321b warm or cool?
Cool — it scores 74 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #08320C; nudged cooler, #07332B.