Skip to content

#031b0d

a deep, electric green · cool · closest name: Black

RGB
3, 27, 13
HSL
145°, 80%, 6%
CMYK
89, 0, 52, 89
Luminance
0.0083

At a glance

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

Hex
#031b0d
Hue
145°
green
Saturation
80%
electric
Lightness
6%
deep
Brightness
11%
HSV value
Perceived
8%
weighted brightness
Luminance
0.0083
WCAG relative
Temperature
Cool
73/100 cool
Color family
Green
Tone
Electric
Best ink
White
18.00:1
Closest name
Black
ΔE2000 13.8
Where it sits
Hue145° of 360°
Saturation80%
Lightness6%
Temperature
Warm ← → Cool73% 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#031b0d
RGBrgb(3, 27, 13)
HSLhsl(145, 80%, 6%)
CMYKcmyk(89%, 0%, 52%, 89%)
LABlab(7.5 -11.8 5.6)
LCHlch(7.5 13.1 154.7)
OKLCHoklch(0.198 0.042 155.6)
Decimal203533
Display P3color(display-p3 0.012 0.106 0.051)

Copy-ready code

/* CSS */
color: #031b0d;
background-color: #031b0d;
/* Tailwind (arbitrary) */
class="text-[#031b0d] bg-[#031b0d]"
/* SCSS */
$brand: #031b0d;
/* SwiftUI */
Color(red: 0.012, green: 0.106, blue: 0.051)
/* Android */
Color.parseColor("#031b0d")
/* Flutter */
Color(0xFF031B0D)
/* Python / OpenCV (BGR) */
(13, 27, 3)

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

Accessibility — WCAG contrast

Aa
#031b0d on white: 18.00:1
AA ✓ pass · AA-large · AAA
Aa
#031b0d on black: 1.17:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1B180C
deuteranopia · #18160E
tritanopia · #001B17

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #031b0d 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
#E6F9EE
#C7F5DA
#9AF4BF
#68EEA0
#35E980
#18DC6A
#14B858
#109347
#106A36
#031b0d
Base = 950Lightest = 50 · #F3FCF7Darkest = 950 · #031b0d
:root {
  --brand-50: #F3FCF7;
  --brand-100: #E6F9EE;
  --brand-200: #C7F5DA;
  --brand-300: #9AF4BF;
  --brand-400: #68EEA0;
  --brand-500: #35E980;
  --brand-600: #18DC6A;
  --brand-700: #14B858;
  --brand-800: #109347;
  --brand-900: #106A36;
  --brand-950: #031b0d;
  --brand: #031b0d;
  --brand-ink: #ffffff;
}

Colors that work with #031b0d

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#C0EDD2
Hairlines and dividers
Muted text#4B9B6C
Captions on the surface
Accent#1C0217
Second voice, not a rival
Dark variant#0D7337
Hover, pressed, headers
Light variant#E8FCF1
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 #031b0d

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#1B0311
Analogous left#051B03
Analogous right#031B19
Split-complement 1#19031B
Split-complement 2#1B0305
Triadic 1#0D031B
Triadic 2#1B0D03
Tetradic#03051B

RGB percentages

Red1.2%
Green10.6%
Blue5.1%

CMYK percentages

Cyan88.9%
Magenta0.0%
Yellow51.9%
Key (black)89.4%

Color previews

#031b0d text on a black background

contrast 1.17:1

Card sample

#031b0d text on a white background

contrast 18.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #031b0d;
Background color
Panel with #031b0d background
background-color: #031b0d;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #031b0d;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(3, 27, 13, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(3, 27, 13, 0.45);
Border & gradient
Gradient panel
border: 3px solid #031b0d;
background: linear-gradient(135deg, #031b0d, #03191B);

Monochromatic scale

Palettes built from #031b0d

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.

#031b0d 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.

#031b0d, answered

What color is #031b0d?

#031b0d is a deep electric green, closest to Black (ΔE2000 13.8). It sits at 145° on the hue wheel with 80% saturation and 6% lightness, which reads as cool.

What is the RGB value of #031b0d?

rgb(3, 27, 13) — 3 red, 27 green and 13 blue out of 255, or 1.2% / 10.6% / 5.1% by channel.

Is #031b0d a light or a dark color?

It is a dark color. Relative luminance is 0.0083 and perceived brightness is 8%, so white text on it reaches 18.00:1.

Should I use black or white text on #031b0d?

White. It scores 18.00:1 against #031b0d, versus 1.17:1 for black — AAA at any size.

What is the complementary color of #031b0d?

#1B0311 sits directly opposite on the wheel. Softer options are the split-complements #19031B and #1B0305, which give the same contrast with far less vibration.

What colors go well with #031b0d?

For interface work: #F4FAF7 as the surface, #C0EDD2 for borders, #4B9B6C for secondary text, #1C0217 as an accent and #0D7337 for hover and pressed states. For a palette, the analogous pair #051B03 and #031B19 stays calm, while #1B0311 is the loudest partner.

What is #031b0d in CMYK for printing?

cmyk(89%, 0%, 52%, 89%). 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 #031b0d warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #031B04; nudged cooler, #031B16.

Work with #031b0d in the Color Lab