Skip to content

#023d21

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

RGB
2, 61, 33
HSL
152°, 94%, 12%
CMYK
97, 0, 46, 76
Luminance
0.0346

At a glance

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

Hex
#023d21
Hue
152°
green
Saturation
94%
electric
Lightness
12%
deep
Brightness
24%
HSV value
Perceived
19%
weighted brightness
Luminance
0.0346
WCAG relative
Temperature
Cool
76/100 cool
Color family
Green
Tone
Electric
Best ink
White
12.41:1
Closest name
Dark Slate Gray
ΔE2000 15.3
Where it sits
Hue152° of 360°
Saturation94%
Lightness12%
Temperature
Warm ← → Cool76% 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#023d21
RGBrgb(2, 61, 33)
HSLhsl(152, 94%, 12%)
CMYKcmyk(97%, 0%, 46%, 76%)
LABlab(21.8 -25.6 12.4)
LCHlch(21.8 28.5 154.2)
OKLCHoklch(0.317 0.075 155.9)
Decimal146721
Display P3color(display-p3 0.008 0.239 0.129)

Copy-ready code

/* CSS */
color: #023d21;
background-color: #023d21;
/* Tailwind (arbitrary) */
class="text-[#023d21] bg-[#023d21]"
/* SCSS */
$brand: #023d21;
/* SwiftUI */
Color(red: 0.008, green: 0.239, blue: 0.129)
/* Android */
Color.parseColor("#023d21")
/* Flutter */
Color(0xFF023D21)
/* Python / OpenCV (BGR) */
(33, 61, 2)

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

Accessibility — WCAG contrast

Aa
#023d21 on white: 12.41:1
AA ✓ pass · AA-large · AAA
Aa
#023d21 on black: 1.69:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3D371F
deuteranopia · #363223
tritanopia · #003C36

Color scale — 50 to 950

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

#F2FDF8
#E4FBF0
#C2FADF
#92FBCA
#5CFAAF
#26F894
#08ED80
#06C66B
#059E55
#087240
#023d21
Base = 950Lightest = 50 · #F2FDF8Darkest = 950 · #023d21
:root {
  --brand-50: #F2FDF8;
  --brand-100: #E4FBF0;
  --brand-200: #C2FADF;
  --brand-300: #92FBCA;
  --brand-400: #5CFAAF;
  --brand-500: #26F894;
  --brand-600: #08ED80;
  --brand-700: #06C66B;
  --brand-800: #059E55;
  --brand-900: #087240;
  --brand-950: #023d21;
  --brand: #023d21;
  --brand-ink: #ffffff;
}

Colors that work with #023d21

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#C0EDD7
Hairlines and dividers
Muted text#4B9B75
Captions on the surface
Accent#3F012E
Second voice, not a rival
Dark variant#047B43
Hover, pressed, headers
Light variant#E6FEF3
Selected rows, tints
Dark surface#14241C
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 #023d21

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#3D021E
Analogous left#023D03
Analogous right#023C3D
Split-complement 1#3D023C
Split-complement 2#3D0302
Triadic 1#21023D
Triadic 2#3D2102
Tetradic#03023D

RGB percentages

Red0.8%
Green23.9%
Blue12.9%

CMYK percentages

Cyan96.7%
Magenta0.0%
Yellow45.9%
Key (black)76.1%

Color previews

#023d21 text on a black background

contrast 1.69:1

Card sample

#023d21 text on a white background

contrast 12.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #023d21;
Background color
Panel with #023d21 background
background-color: #023d21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #023d21;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(2, 61, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(2, 61, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #023d21;
background: linear-gradient(135deg, #023d21, #02323D);

Monochromatic scale

Palettes built from #023d21

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.

#023d21 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.

#023d21, answered

What color is #023d21?

#023d21 is a deep electric green, closest to Dark Slate Gray (ΔE2000 15.3). It sits at 152° on the hue wheel with 94% saturation and 12% lightness, which reads as cool.

What is the RGB value of #023d21?

rgb(2, 61, 33) — 2 red, 61 green and 33 blue out of 255, or 0.8% / 23.9% / 12.9% by channel.

Is #023d21 a light or a dark color?

It is a dark color. Relative luminance is 0.0346 and perceived brightness is 19%, so white text on it reaches 12.41:1.

Should I use black or white text on #023d21?

White. It scores 12.41:1 against #023d21, versus 1.69:1 for black — AAA at any size.

What is the complementary color of #023d21?

#3D021E sits directly opposite on the wheel. Softer options are the split-complements #3D023C and #3D0302, which give the same contrast with far less vibration.

What colors go well with #023d21?

For interface work: #F4FAF8 as the surface, #C0EDD7 for borders, #4B9B75 for secondary text, #3F012E as an accent and #047B43 for hover and pressed states. For a palette, the analogous pair #023D03 and #023C3D stays calm, while #3D021E is the loudest partner.

What is #023d21 in CMYK for printing?

cmyk(97%, 0%, 46%, 76%). 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 #023d21 warm or cool?

Cool — it scores 76 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #023D0B; nudged cooler, #013E37.

Work with #023d21 in the Color Lab