Skip to content

#06321f

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

RGB
6, 50, 31
HSL
154°, 79%, 11%
CMYK
88, 0, 38, 80
Luminance
0.0242

At a glance

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

Hex
#06321f
Hue
154°
green
Saturation
79%
electric
Lightness
11%
deep
Brightness
20%
HSV value
Perceived
16%
weighted brightness
Luminance
0.0242
WCAG relative
Temperature
Cool
77/100 cool
Color family
Green
Tone
Electric
Best ink
White
14.15:1
Closest name
Dark Slate Gray
ΔE2000 14.3
Where it sits
Hue154° of 360°
Saturation79%
Lightness11%
Temperature
Warm ← → Cool77% 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#06321f
RGBrgb(6, 50, 31)
HSLhsl(154, 79%, 11%)
CMYKcmyk(88%, 0%, 38%, 80%)
LABlab(17.6 -20.2 8.0)
LCHlch(17.6 21.8 158.4)
OKLCHoklch(0.282 0.059 159.8)
Decimal406047
Display P3color(display-p3 0.024 0.196 0.122)

Copy-ready code

/* CSS */
color: #06321f;
background-color: #06321f;
/* Tailwind (arbitrary) */
class="text-[#06321f] bg-[#06321f]"
/* SCSS */
$brand: #06321f;
/* SwiftUI */
Color(red: 0.024, green: 0.196, blue: 0.122)
/* Android */
Color.parseColor("#06321f")
/* Flutter */
Color(0xFF06321F)
/* Python / OpenCV (BGR) */
(31, 50, 6)

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

Accessibility — WCAG contrast

Aa
#06321f on white: 14.15:1
AA ✓ pass · AA-large · AAA
Aa
#06321f on black: 1.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #312D1E
deuteranopia · #2C2920
tritanopia · #00322D

Color scale — 50 to 950

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

#F3FCF8
#E6F9F1
#C7F5E1
#9BF3CD
#69EDB4
#37E79B
#1ADB88
#16B671
#11925A
#116943
#06321f
Base = 950Lightest = 50 · #F3FCF8Darkest = 950 · #06321f
:root {
  --brand-50: #F3FCF8;
  --brand-100: #E6F9F1;
  --brand-200: #C7F5E1;
  --brand-300: #9BF3CD;
  --brand-400: #69EDB4;
  --brand-500: #37E79B;
  --brand-600: #1ADB88;
  --brand-700: #16B671;
  --brand-800: #11925A;
  --brand-900: #116943;
  --brand-950: #06321f;
  --brand: #06321f;
  --brand-ink: #ffffff;
}

Colors that work with #06321f

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#F4FAF8
Tinted page background
Border#C0EDD9
Hairlines and dividers
Muted text#4B9B78
Captions on the surface
Accent#330524
Second voice, not a rival
Dark variant#0E7247
Hover, pressed, headers
Light variant#E8FCF4
Selected rows, tints
Dark surface#14241D
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 #06321f

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#320619
Analogous left#063209
Analogous right#062F32
Split-complement 1#32062F
Split-complement 2#320906
Triadic 1#1F0632
Triadic 2#321F06
Tetradic#090632

RGB percentages

Red2.4%
Green19.6%
Blue12.2%

CMYK percentages

Cyan88.0%
Magenta0.0%
Yellow38.0%
Key (black)80.4%

Color previews

#06321f text on a black background

contrast 1.48:1

Card sample

#06321f text on a white background

contrast 14.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #06321f;
Background color
Panel with #06321f background
background-color: #06321f;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(6, 50, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(6, 50, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #06321f;
background: linear-gradient(135deg, #06321f, #062832);

Monochromatic scale

Palettes built from #06321f

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.

#06321f 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

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

#06321f, answered

What color is #06321f?

#06321f is a deep electric green, closest to Dark Slate Gray (ΔE2000 14.3). It sits at 154° on the hue wheel with 79% saturation and 11% lightness, which reads as cool.

What is the RGB value of #06321f?

rgb(6, 50, 31) — 6 red, 50 green and 31 blue out of 255, or 2.4% / 19.6% / 12.2% by channel.

Is #06321f a light or a dark color?

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

Should I use black or white text on #06321f?

White. It scores 14.15:1 against #06321f, versus 1.48:1 for black — AAA at any size.

What is the complementary color of #06321f?

#320619 sits directly opposite on the wheel. Softer options are the split-complements #32062F and #320906, which give the same contrast with far less vibration.

What colors go well with #06321f?

For interface work: #F4FAF8 as the surface, #C0EDD9 for borders, #4B9B78 for secondary text, #330524 as an accent and #0E7247 for hover and pressed states. For a palette, the analogous pair #063209 and #062F32 stays calm, while #320619 is the loudest partner.

What is #06321f in CMYK for printing?

cmyk(88%, 0%, 38%, 80%). 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 #06321f warm or cool?

Cool — it scores 77 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #06320F; nudged cooler, #053330.

Work with #06321f in the Color Lab