Skip to content

#02402a

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

RGB
2, 64, 42
HSL
159°, 94%, 13%
CMYK
97, 0, 34, 75
Luminance
0.0385

At a glance

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

Hex
#02402a
Hue
159°
green
Saturation
94%
electric
Lightness
13%
deep
Brightness
25%
HSV value
Perceived
20%
weighted brightness
Luminance
0.0385
WCAG relative
Temperature
Cool
79/100 cool
Color family
Green
Tone
Electric
Best ink
White
11.87:1
Closest name
Dark Slate Gray
ΔE2000 13.2
Where it sits
Hue159° of 360°
Saturation94%
Lightness13%
Temperature
Warm ← → Cool79% 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#02402a
RGBrgb(2, 64, 42)
HSLhsl(159, 94%, 13%)
CMYKcmyk(97%, 0%, 34%, 75%)
LABlab(23.2 -24.7 8.4)
LCHlch(23.2 26.1 161.2)
OKLCHoklch(0.329 0.070 162.4)
Decimal147498
Display P3color(display-p3 0.008 0.251 0.165)

Copy-ready code

/* CSS */
color: #02402a;
background-color: #02402a;
/* Tailwind (arbitrary) */
class="text-[#02402a] bg-[#02402a]"
/* SCSS */
$brand: #02402a;
/* SwiftUI */
Color(red: 0.008, green: 0.251, blue: 0.165)
/* Android */
Color.parseColor("#02402a")
/* Flutter */
Color(0xFF02402A)
/* Python / OpenCV (BGR) */
(42, 64, 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 #02402a · 11.87:1
Use #ffffffAAA at every size.
Aa
White text · 11.87:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.77:1
AA fail · AA large fail · AAA fail
Reading the other direction: #02402a as text scores 11.87:1 on white and 1.77:1 on black.

Accessibility — WCAG contrast

Aa
#02402a on white: 11.87:1
AA ✓ pass · AA-large · AAA
Aa
#02402a on black: 1.77:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3F3A29
deuteranopia · #38352B
tritanopia · #00403A

Color scale — 50 to 950

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

#F2FDF9
#E4FBF3
#C2FAE6
#92FCD6
#5CFAC2
#25F8AD
#07ED9C
#06C682
#059E68
#08724D
#02402a
Base = 950Lightest = 50 · #F2FDF9Darkest = 950 · #02402a
:root {
  --brand-50: #F2FDF9;
  --brand-100: #E4FBF3;
  --brand-200: #C2FAE6;
  --brand-300: #92FCD6;
  --brand-400: #5CFAC2;
  --brand-500: #25F8AD;
  --brand-600: #07ED9C;
  --brand-700: #06C682;
  --brand-800: #059E68;
  --brand-900: #08724D;
  --brand-950: #02402a;
  --brand: #02402a;
  --brand-ink: #ffffff;
}

Colors that work with #02402a

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#C0EDDD
Hairlines and dividers
Muted text#4B9B7E
Captions on the surface
Accent#410128
Second voice, not a rival
Dark variant#047C51
Hover, pressed, headers
Light variant#E6FEF6
Selected rows, tints
Dark surface#14241E
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 #02402a

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#400218
Analogous left#02400B
Analogous right#023740
Split-complement 1#400237
Split-complement 2#400B02
Triadic 1#2A0240
Triadic 2#402A02
Tetradic#0B0240

RGB percentages

Red0.8%
Green25.1%
Blue16.5%

CMYK percentages

Cyan96.9%
Magenta0.0%
Yellow34.4%
Key (black)74.9%

Color previews

#02402a text on a black background

contrast 1.77:1

Card sample

#02402a text on a white background

contrast 11.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #02402a;
Background color
Panel with #02402a background
background-color: #02402a;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #02402a;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(2, 64, 42, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(2, 64, 42, 0.45);
Border & gradient
Gradient panel
border: 3px solid #02402a;
background: linear-gradient(135deg, #02402a, #022D40);

Monochromatic scale

Palettes built from #02402a

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.

#02402a 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.

#02402a, answered

What color is #02402a?

#02402a is a deep electric green, closest to Dark Slate Gray (ΔE2000 13.2). It sits at 159° on the hue wheel with 94% saturation and 13% lightness, which reads as cool.

What is the RGB value of #02402a?

rgb(2, 64, 42) — 2 red, 64 green and 42 blue out of 255, or 0.8% / 25.1% / 16.5% by channel.

Is #02402a a light or a dark color?

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

Should I use black or white text on #02402a?

White. It scores 11.87:1 against #02402a, versus 1.77:1 for black — AAA at any size.

What is the complementary color of #02402a?

#400218 sits directly opposite on the wheel. Softer options are the split-complements #400237 and #400B02, which give the same contrast with far less vibration.

What colors go well with #02402a?

For interface work: #F4FAF8 as the surface, #C0EDDD for borders, #4B9B7E for secondary text, #410128 as an accent and #047C51 for hover and pressed states. For a palette, the analogous pair #02400B and #023740 stays calm, while #400218 is the loudest partner.

What is #02402a in CMYK for printing?

cmyk(97%, 0%, 34%, 75%). 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 #02402a warm or cool?

Cool — it scores 79 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #024013; nudged cooler, #014040.

Work with #02402a in the Color Lab