Skip to content

#045c01

a deep, electric green · cool · closest name: Dark Green

RGB
4, 92, 1
HSL
118°, 98%, 18%
CMYK
96, 0, 99, 64
Luminance
0.0768

At a glance

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

Hex
#045c01
Hue
118°
green
Saturation
98%
electric
Lightness
18%
deep
Brightness
36%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0768
WCAG relative
Temperature
Cool
62/100 cool
Color family
Green
Tone
Electric
Best ink
White
8.28:1
Closest name
Dark Green
ΔE2000 2.6
Where it sits
Hue118° of 360°
Saturation98%
Lightness18%
Temperature
Warm ← → Cool62% 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#045c01
RGBrgb(4, 92, 1)
HSLhsl(118, 98%, 18%)
CMYKcmyk(96%, 0%, 99%, 64%)
LABlab(33.3 -40.4 39.2)
LCHlch(33.3 56.3 135.8)
OKLCHoklch(0.412 0.139 142.3)
Decimal285697
Display P3color(display-p3 0.016 0.361 0.004)

Copy-ready code

/* CSS */
color: #045c01;
background-color: #045c01;
/* Tailwind (arbitrary) */
class="text-[#045c01] bg-[#045c01]"
/* SCSS */
$brand: #045c01;
/* SwiftUI */
Color(red: 0.016, green: 0.361, blue: 0.004)
/* Android */
Color.parseColor("#045c01")
/* Flutter */
Color(0xFF045C01)
/* Python / OpenCV (BGR) */
(1, 92, 4)

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

Accessibility — WCAG contrast

Aa
#045c01 on white: 8.28:1
AA ✓ pass · AA-large · AAA
Aa
#045c01 on black: 2.54:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5E5200
deuteranopia · #564C0F
tritanopia · #00594D

Color scale — 50 to 950

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

#F2FDF1
#E4FCE3
#C3FBC1
#94FE90
#5EFD59
#28FD21
#0BF203
#09CA02
#07A102
#0A7406
#045c01
Base = 950Lightest = 50 · #F2FDF1Darkest = 950 · #045c01
:root {
  --brand-50: #F2FDF1;
  --brand-100: #E4FCE3;
  --brand-200: #C3FBC1;
  --brand-300: #94FE90;
  --brand-400: #5EFD59;
  --brand-500: #28FD21;
  --brand-600: #0BF203;
  --brand-700: #09CA02;
  --brand-800: #07A102;
  --brand-900: #0A7406;
  --brand-950: #045c01;
  --brand: #045c01;
  --brand-ink: #ffffff;
}

Colors that work with #045c01

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#F4FAF4
Tinted page background
Border#C1EDC0
Hairlines and dividers
Muted text#4D9B4B
Captions on the surface
Accent#43005D
Second voice, not a rival
Dark variant#067E01
Hover, pressed, headers
Light variant#E7FFE6
Selected rows, tints
Dark surface#142414
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 #045c01

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#59015C
Analogous left#315C01
Analogous right#015C2B
Split-complement 1#2B015C
Split-complement 2#5C0131
Triadic 1#01045C
Triadic 2#5C0104
Tetradic#01315C

RGB percentages

Red1.6%
Green36.1%
Blue0.4%

CMYK percentages

Cyan95.7%
Magenta0.0%
Yellow98.9%
Key (black)63.9%

Color previews

#045c01 text on a black background

contrast 2.54:1

Card sample

#045c01 text on a white background

contrast 8.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #045c01;
Background color
Panel with #045c01 background
background-color: #045c01;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #045c01;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(4, 92, 1, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(4, 92, 1, 0.45);
Border & gradient
Gradient panel
border: 3px solid #045c01;
background: linear-gradient(135deg, #045c01, #015C3B);

Monochromatic scale

Palettes built from #045c01

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.

#045c01 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.

#045c01, answered

What color is #045c01?

#045c01 is a deep electric green, closest to Dark Green (ΔE2000 2.6). It sits at 118° on the hue wheel with 98% saturation and 18% lightness, which reads as cool.

What is the RGB value of #045c01?

rgb(4, 92, 1) — 4 red, 92 green and 1 blue out of 255, or 1.6% / 36.1% / 0.4% by channel.

Is #045c01 a light or a dark color?

It is a dark color. Relative luminance is 0.0768 and perceived brightness is 28%, so white text on it reaches 8.28:1.

Should I use black or white text on #045c01?

White. It scores 8.28:1 against #045c01, versus 2.54:1 for black — AAA at any size.

What is the complementary color of #045c01?

#59015C sits directly opposite on the wheel. Softer options are the split-complements #2B015C and #5C0131, which give the same contrast with far less vibration.

What colors go well with #045c01?

For interface work: #F4FAF4 as the surface, #C1EDC0 for borders, #4D9B4B for secondary text, #43005D as an accent and #067E01 for hover and pressed states. For a palette, the analogous pair #315C01 and #015C2B stays calm, while #59015C is the loudest partner.

What is #045c01 in CMYK for printing?

cmyk(96%, 0%, 99%, 64%). 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 #045c01 warm or cool?

Cool — it scores 62 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #255C01; nudged cooler, #005D1F.

Work with #045c01 in the Color Lab