Skip to content

#0f2a21

a deep, vivid cyan · cool · closest name: darkslategray

RGB
15, 42, 33
HSL
160°, 47%, 11%
CMYK
64, 0, 21, 84
Luminance
0.0187

Every format

HEX#0f2a21
RGBrgb(15, 42, 33)
HSLhsl(160, 47%, 11%)
CMYKcmyk(64%, 0%, 21%, 84%)
LABlab(14.8 -13.1 2.8)
LCHlch(14.8 13.4 168.1)
OKLCHoklch(0.261 0.037 169.1)

Copy-ready code

/* CSS */
color: #0f2a21;
background-color: #0f2a21;
/* Tailwind (arbitrary) */
class="text-[#0f2a21] bg-[#0f2a21]"
/* SCSS */
$brand: #0f2a21;
/* SwiftUI */
Color(red: 0.059, green: 0.165, blue: 0.129)
/* Android */
Color.parseColor("#0f2a21")

Accessibility — WCAG contrast

Aa
#0f2a21 on white: 15.29:1
AA ✓ pass · AA-large · AAA
Aa
#0f2a21 on black: 1.37:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green16.5%
Blue12.9%

CMYK percentages

Cyan64.3%
Magenta0.0%
Yellow21.4%
Key (black)83.5%

Color previews

#0f2a21 text on a black background

contrast 1.37:1

Card sample

#0f2a21 text on a white background

contrast 15.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0f2a21;
Background color
Panel with #0f2a21 background
background-color: #0f2a21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #0f2a21;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(15, 42, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 42, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f2a21;
background: linear-gradient(135deg, #0f2a21, #0F212A);

Monochromatic scale

Palettes built from #0f2a21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f2a21 in the Color Lab