Skip to content

#30381f

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

RGB
48, 56, 31
HSL
79°, 29%, 17%
CMYK
14, 0, 45, 78
Luminance
0.0356

At a glance

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

Hex
#30381f
Hue
79°
green
Saturation
29%
soft
Lightness
17%
deep
Brightness
22%
HSV value
Perceived
20%
weighted brightness
Luminance
0.0356
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Green
Tone
Soft
Best ink
White
12.27:1
Closest name
Dark Slate Gray
ΔE2000 15.6
Where it sits
Hue79° of 360°
Saturation29%
Lightness17%
Temperature
Warm ← → Cool43% 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#30381f
RGBrgb(48, 56, 31)
HSLhsl(79, 29%, 17%)
CMYKcmyk(14%, 0%, 45%, 78%)
LABlab(22.1 -8.5 14.5)
LCHlch(22.1 16.9 120.4)
OKLCHoklch(0.326 0.043 123.2)
Decimal3160095
Display P3color(display-p3 0.188 0.220 0.122)

Copy-ready code

/* CSS */
color: #30381f;
background-color: #30381f;
/* Tailwind (arbitrary) */
class="text-[#30381f] bg-[#30381f]"
/* SCSS */
$brand: #30381f;
/* SwiftUI */
Color(red: 0.188, green: 0.220, blue: 0.122)
/* Android */
Color.parseColor("#30381f")
/* Flutter */
Color(0xFF30381F)
/* Python / OpenCV (BGR) */
(31, 56, 48)

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

Accessibility — WCAG contrast

Aa
#30381f on white: 12.27:1
AA ✓ pass · AA-large · AAA
Aa
#30381f on black: 1.71:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3B351D
deuteranopia · #3A3520
tritanopia · #323632

Color scale — 50 to 950

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

#F8F9F6
#F1F3EC
#E1E6D5
#CDD7B7
#B4C393
#9AAF6F
#879E57
#718349
#5A693A
#434D2D
#30381f
Base = 950Lightest = 50 · #F8F9F6Darkest = 950 · #30381f
:root {
  --brand-50: #F8F9F6;
  --brand-100: #F1F3EC;
  --brand-200: #E1E6D5;
  --brand-300: #CDD7B7;
  --brand-400: #B4C393;
  --brand-500: #9AAF6F;
  --brand-600: #879E57;
  --brand-700: #718349;
  --brand-800: #5A693A;
  --brand-900: #434D2D;
  --brand-950: #30381f;
  --brand: #30381f;
  --brand-ink: #ffffff;
}

Colors that work with #30381f

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#F8FAF5
Tinted page background
Border#DAE2CA
Hairlines and dividers
Muted text#7F9452
Captions on the surface
Accent#1F1D3A
Second voice, not a rival
Dark variant#46522D
Hover, pressed, headers
Light variant#F4F6EF
Selected rows, tints
Dark surface#1F2414
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 #30381f

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#271F38
Analogous left#38341F
Analogous right#24381F
Split-complement 1#1F2438
Split-complement 2#341F38
Triadic 1#1F3038
Triadic 2#381F30
Tetradic#1F3834

RGB percentages

Red18.8%
Green22.0%
Blue12.2%

CMYK percentages

Cyan14.3%
Magenta0.0%
Yellow44.6%
Key (black)78.0%

Color previews

#30381f text on a black background

contrast 1.71:1

Card sample

#30381f text on a white background

contrast 12.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(48, 56, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(48, 56, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #30381f;
background: linear-gradient(135deg, #30381f, #1F381F);

Monochromatic scale

Palettes built from #30381f

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.

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

#30381f, answered

What color is #30381f?

#30381f is a deep soft green, closest to Dark Slate Gray (ΔE2000 15.6). It sits at 79° on the hue wheel with 29% saturation and 17% lightness, which reads as neutral.

What is the RGB value of #30381f?

rgb(48, 56, 31) — 48 red, 56 green and 31 blue out of 255, or 18.8% / 22% / 12.2% by channel.

Is #30381f a light or a dark color?

It is a dark color. Relative luminance is 0.0356 and perceived brightness is 20%, so white text on it reaches 12.27:1.

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

White. It scores 12.27:1 against #30381f, versus 1.71:1 for black — AAA at any size.

What is the complementary color of #30381f?

#271F38 sits directly opposite on the wheel. Softer options are the split-complements #1F2438 and #341F38, which give the same contrast with far less vibration.

What colors go well with #30381f?

For interface work: #F8FAF5 as the surface, #DAE2CA for borders, #7F9452 for secondary text, #1F1D3A as an accent and #46522D for hover and pressed states. For a palette, the analogous pair #38341F and #24381F stays calm, while #271F38 is the loudest partner.

What is #30381f in CMYK for printing?

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

Is #30381f warm or cool?

Neutral — it scores 43 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #38371F; nudged cooler, #27391E.

Work with #30381f in the Color Lab