Skip to content

#08331c

a deep, vivid green · cool · closest name: Dark Slate Gray

RGB
8, 51, 28
HSL
148°, 73%, 12%
CMYK
84, 0, 45, 80
Luminance
0.0250

At a glance

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

Hex
#08331c
Hue
148°
green
Saturation
73%
vivid
Lightness
12%
deep
Brightness
20%
HSV value
Perceived
16%
weighted brightness
Luminance
0.0250
WCAG relative
Temperature
Cool
74/100 cool
Color family
Green
Tone
Vivid
Best ink
White
13.99:1
Closest name
Dark Slate Gray
ΔE2000 15.2
Where it sits
Hue148° of 360°
Saturation73%
Lightness12%
Temperature
Warm ← → Cool74% 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#08331c
RGBrgb(8, 51, 28)
HSLhsl(148, 73%, 12%)
CMYKcmyk(84%, 0%, 45%, 80%)
LABlab(17.9 -21.0 10.5)
LCHlch(17.9 23.5 153.4)
OKLCHoklch(0.285 0.063 155.1)
Decimal537372
Display P3color(display-p3 0.031 0.200 0.110)

Copy-ready code

/* CSS */
color: #08331c;
background-color: #08331c;
/* Tailwind (arbitrary) */
class="text-[#08331c] bg-[#08331c]"
/* SCSS */
$brand: #08331c;
/* SwiftUI */
Color(red: 0.031, green: 0.200, blue: 0.110)
/* Android */
Color.parseColor("#08331c")
/* Flutter */
Color(0xFF08331C)
/* Python / OpenCV (BGR) */
(28, 51, 8)

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

Accessibility — WCAG contrast

Aa
#08331c on white: 13.99:1
AA ✓ pass · AA-large · AAA
Aa
#08331c on black: 1.50:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #332E1A
deuteranopia · #2D2A1E
tritanopia · #00322D

Color scale — 50 to 950

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

#F3FCF7
#E7F8EF
#C9F3DC
#9EF0C4
#6EE8A7
#3DE189
#21D474
#1CB061
#168D4D
#14663A
#08331c
Base = 950Lightest = 50 · #F3FCF7Darkest = 950 · #08331c
:root {
  --brand-50: #F3FCF7;
  --brand-100: #E7F8EF;
  --brand-200: #C9F3DC;
  --brand-300: #9EF0C4;
  --brand-400: #6EE8A7;
  --brand-500: #3DE189;
  --brand-600: #21D474;
  --brand-700: #1CB061;
  --brand-800: #168D4D;
  --brand-900: #14663A;
  --brand-950: #08331c;
  --brand: #08331c;
  --brand-ink: #ffffff;
}

Colors that work with #08331c

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#F4FAF7
Tinted page background
Border#C0EDD5
Hairlines and dividers
Muted text#4B9B70
Captions on the surface
Accent#34072B
Second voice, not a rival
Dark variant#116E3C
Hover, pressed, headers
Light variant#E9FCF2
Selected rows, tints
Dark surface#14241B
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 #08331c

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#33081F
Analogous left#0A3308
Analogous right#083332
Split-complement 1#320833
Split-complement 2#33080A
Triadic 1#1C0833
Triadic 2#331C08
Tetradic#080A33

RGB percentages

Red3.1%
Green20.0%
Blue11.0%

CMYK percentages

Cyan84.3%
Magenta0.0%
Yellow45.1%
Key (black)80.0%

Color previews

#08331c text on a black background

contrast 1.50:1

Card sample

#08331c text on a white background

contrast 13.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #08331c;
Background color
Panel with #08331c background
background-color: #08331c;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(8, 51, 28, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 51, 28, 0.45);
Border & gradient
Gradient panel
border: 3px solid #08331c;
background: linear-gradient(135deg, #08331c, #082D33);

Monochromatic scale

Palettes built from #08331c

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.

#08331c 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.

#08331c, answered

What color is #08331c?

#08331c is a deep vivid green, closest to Dark Slate Gray (ΔE2000 15.2). It sits at 148° on the hue wheel with 73% saturation and 12% lightness, which reads as cool.

What is the RGB value of #08331c?

rgb(8, 51, 28) — 8 red, 51 green and 28 blue out of 255, or 3.1% / 20% / 11% by channel.

Is #08331c a light or a dark color?

It is a dark color. Relative luminance is 0.0250 and perceived brightness is 16%, so white text on it reaches 13.99:1.

Should I use black or white text on #08331c?

White. It scores 13.99:1 against #08331c, versus 1.50:1 for black — AAA at any size.

What is the complementary color of #08331c?

#33081F sits directly opposite on the wheel. Softer options are the split-complements #320833 and #33080A, which give the same contrast with far less vibration.

What colors go well with #08331c?

For interface work: #F4FAF7 as the surface, #C0EDD5 for borders, #4B9B70 for secondary text, #34072B as an accent and #116E3C for hover and pressed states. For a palette, the analogous pair #0A3308 and #083332 stays calm, while #33081F is the loudest partner.

What is #08331c in CMYK for printing?

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

Is #08331c 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 #08330C; nudged cooler, #07342C.

Work with #08331c in the Color Lab