Skip to content

#062d21

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

RGB
6, 45, 33
HSL
162°, 77%, 10%
CMYK
87, 0, 27, 82
Luminance
0.0203

At a glance

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

Hex
#062d21
Hue
162°
cyan
Saturation
77%
electric
Lightness
10%
deep
Brightness
18%
HSV value
Perceived
14%
weighted brightness
Luminance
0.0203
WCAG relative
Temperature
Cool
80/100 cool
Color family
Cyan
Tone
Electric
Best ink
White
14.95:1
Closest name
Dark Slate Gray
ΔE2000 13.3
Where it sits
Hue162° of 360°
Saturation77%
Lightness10%
Temperature
Warm ← → Cool80% 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#062d21
RGBrgb(6, 45, 33)
HSLhsl(162, 77%, 10%)
CMYKcmyk(87%, 0%, 27%, 82%)
LABlab(15.6 -17.1 3.9)
LCHlch(15.6 17.5 167.0)
OKLCHoklch(0.267 0.049 168.0)
Decimal404769
Display P3color(display-p3 0.024 0.176 0.129)

Copy-ready code

/* CSS */
color: #062d21;
background-color: #062d21;
/* Tailwind (arbitrary) */
class="text-[#062d21] bg-[#062d21]"
/* SCSS */
$brand: #062d21;
/* SwiftUI */
Color(red: 0.024, green: 0.176, blue: 0.129)
/* Android */
Color.parseColor("#062d21")
/* Flutter */
Color(0xFF062D21)
/* Python / OpenCV (BGR) */
(33, 45, 6)

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

Accessibility — WCAG contrast

Aa
#062d21 on white: 14.95:1
AA ✓ pass · AA-large · AAA
Aa
#062d21 on black: 1.41:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2C2920
deuteranopia · #262522
tritanopia · #002D2A

Color scale — 50 to 950

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

#F3FCF9
#E7F9F3
#C8F4E6
#9CF2D7
#6AEBC4
#39E5B0
#1DD89E
#18B484
#13906A
#12684E
#062d21
Base = 950Lightest = 50 · #F3FCF9Darkest = 950 · #062d21
:root {
  --brand-50: #F3FCF9;
  --brand-100: #E7F9F3;
  --brand-200: #C8F4E6;
  --brand-300: #9CF2D7;
  --brand-400: #6AEBC4;
  --brand-500: #39E5B0;
  --brand-600: #1DD89E;
  --brand-700: #18B484;
  --brand-800: #13906A;
  --brand-900: #12684E;
  --brand-950: #062d21;
  --brand: #062d21;
  --brand-ink: #ffffff;
}

Colors that work with #062d21

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#F4FAF9
Tinted page background
Border#C0EDDF
Hairlines and dividers
Muted text#4B9B82
Captions on the surface
Accent#2E051C
Second voice, not a rival
Dark variant#0F7152
Hover, pressed, headers
Light variant#E8FCF6
Selected rows, tints
Dark surface#14241F
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 #062d21

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
  • Thin strokes and 1px borders — they disappear on light UI
  • 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#2D0612
Analogous left#062D0D
Analogous right#06262D
Split-complement 1#2D0626
Split-complement 2#2D0D06
Triadic 1#21062D
Triadic 2#2D2106
Tetradic#0D062D

RGB percentages

Red2.4%
Green17.6%
Blue12.9%

CMYK percentages

Cyan86.7%
Magenta0.0%
Yellow26.7%
Key (black)82.4%

Color previews

#062d21 text on a black background

contrast 1.41:1

Card sample

#062d21 text on a white background

contrast 14.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(6, 45, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(6, 45, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #062d21;
background: linear-gradient(135deg, #062d21, #061F2D);

Monochromatic scale

Palettes built from #062d21

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.

#062d21 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyTravelHealthcareMedia
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#062d21, answered

What color is #062d21?

#062d21 is a deep electric cyan, closest to Dark Slate Gray (ΔE2000 13.3). It sits at 162° on the hue wheel with 77% saturation and 10% lightness, which reads as cool.

What is the RGB value of #062d21?

rgb(6, 45, 33) — 6 red, 45 green and 33 blue out of 255, or 2.4% / 17.6% / 12.9% by channel.

Is #062d21 a light or a dark color?

It is a dark color. Relative luminance is 0.0203 and perceived brightness is 14%, so white text on it reaches 14.95:1.

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

White. It scores 14.95:1 against #062d21, versus 1.41:1 for black — AAA at any size.

What is the complementary color of #062d21?

#2D0612 sits directly opposite on the wheel. Softer options are the split-complements #2D0626 and #2D0D06, which give the same contrast with far less vibration.

What colors go well with #062d21?

For interface work: #F4FAF9 as the surface, #C0EDDF for borders, #4B9B82 for secondary text, #2E051C as an accent and #0F7152 for hover and pressed states. For a palette, the analogous pair #062D0D and #06262D stays calm, while #2D0612 is the loudest partner.

What is #062d21 in CMYK for printing?

cmyk(87%, 0%, 27%, 82%). 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 #062d21 warm or cool?

Cool — it scores 80 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #062D13; nudged cooler, #052B2E.

Work with #062d21 in the Color Lab