Skip to content

#18331f

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

RGB
24, 51, 31
HSL
136°, 36%, 15%
CMYK
53, 0, 39, 80
Luminance
0.0266

At a glance

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

Hex
#18331f
Hue
136°
green
Saturation
36%
soft
Lightness
15%
deep
Brightness
20%
HSV value
Perceived
17%
weighted brightness
Luminance
0.0266
WCAG relative
Temperature
Cool
69/100 cool
Color family
Green
Tone
Soft
Best ink
White
13.71:1
Closest name
Dark Slate Gray
ΔE2000 13.8
Where it sits
Hue136° of 360°
Saturation36%
Lightness15%
Temperature
Warm ← → Cool69% 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#18331f
RGBrgb(24, 51, 31)
HSLhsl(136, 36%, 15%)
CMYKcmyk(53%, 0%, 39%, 80%)
LABlab(18.6 -15.8 9.6)
LCHlch(18.6 18.5 148.8)
OKLCHoklch(0.293 0.049 150.8)
Decimal1585951
Display P3color(display-p3 0.094 0.200 0.122)

Copy-ready code

/* CSS */
color: #18331f;
background-color: #18331f;
/* Tailwind (arbitrary) */
class="text-[#18331f] bg-[#18331f]"
/* SCSS */
$brand: #18331f;
/* SwiftUI */
Color(red: 0.094, green: 0.200, blue: 0.122)
/* Android */
Color.parseColor("#18331f")
/* Flutter */
Color(0xFF18331F)
/* Python / OpenCV (BGR) */
(31, 51, 24)

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

Accessibility — WCAG contrast

Aa
#18331f on white: 13.71:1
AA ✓ pass · AA-large · AAA
Aa
#18331f on black: 1.53:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #332F1E
deuteranopia · #2F2C20
tritanopia · #13322E

Color scale — 50 to 950

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

#F5F9F6
#EBF4EE
#D3E8D9
#B3DBBD
#8DC99C
#66B77B
#4EA665
#418B54
#346F43
#295133
#18331f
Base = 950Lightest = 50 · #F5F9F6Darkest = 950 · #18331f
:root {
  --brand-50: #F5F9F6;
  --brand-100: #EBF4EE;
  --brand-200: #D3E8D9;
  --brand-300: #B3DBBD;
  --brand-400: #8DC99C;
  --brand-500: #66B77B;
  --brand-600: #4EA665;
  --brand-700: #418B54;
  --brand-800: #346F43;
  --brand-900: #295133;
  --brand-950: #18331f;
  --brand: #18331f;
  --brand-ink: #ffffff;
}

Colors that work with #18331f

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#F5FAF6
Tinted page background
Border#C8E5CF
Hairlines and dividers
Muted text#4B9B5F
Captions on the surface
Accent#341634
Second voice, not a rival
Dark variant#295735
Hover, pressed, headers
Light variant#EEF7F0
Selected rows, tints
Dark surface#142418
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 #18331f

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • 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#33182C
Analogous left#1E3318
Analogous right#18332D
Split-complement 1#2D1833
Split-complement 2#33181E
Triadic 1#1F1833
Triadic 2#331F18
Tetradic#181E33

RGB percentages

Red9.4%
Green20.0%
Blue12.2%

CMYK percentages

Cyan52.9%
Magenta0.0%
Yellow39.2%
Key (black)80.0%

Color previews

#18331f text on a black background

contrast 1.53:1

Card sample

#18331f text on a white background

contrast 13.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #18331f

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.

#18331f 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.

#18331f, answered

What color is #18331f?

#18331f is a deep soft green, closest to Dark Slate Gray (ΔE2000 13.8). It sits at 136° on the hue wheel with 36% saturation and 15% lightness, which reads as cool.

What is the RGB value of #18331f?

rgb(24, 51, 31) — 24 red, 51 green and 31 blue out of 255, or 9.4% / 20% / 12.2% by channel.

Is #18331f a light or a dark color?

It is a dark color. Relative luminance is 0.0266 and perceived brightness is 17%, so white text on it reaches 13.71:1.

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

White. It scores 13.71:1 against #18331f, versus 1.53:1 for black — AAA at any size.

What is the complementary color of #18331f?

#33182C sits directly opposite on the wheel. Softer options are the split-complements #2D1833 and #33181E, which give the same contrast with far less vibration.

What colors go well with #18331f?

For interface work: #F5FAF6 as the surface, #C8E5CF for borders, #4B9B5F for secondary text, #341634 as an accent and #295735 for hover and pressed states. For a palette, the analogous pair #1E3318 and #18332D stays calm, while #33182C is the loudest partner.

What is #18331f in CMYK for printing?

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

Is #18331f warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #1B3318; nudged cooler, #173429.

Work with #18331f in the Color Lab