Dark Color

#221B2E

Approximate Color Name: Midnight Obsidian

Closest CSS Color Name: DarkSlateGray (#2F4F4F)

Color Space Coordinates

Copyable codes for development, CSS styling, and print

HEX#221B2E
RGBrgb(34, 27, 46)
HSLhsl(262, 26%, 14%)
HSV / HSBhsv(262, 41.3%, 18%)
CMYK (Print)cmyk(26%, 41%, 0%, 82%)
OKLCH (CSS4)oklch(0.24 0.037 300.7)
OKLaboklab(0.24 0.019 -0.032)
Tailwind CSSbg-[#221B2E]

WCAG 2.1 Contrast & Accessibility Audit

Evaluates readability standards for normal body text (4.5:1 AA / 7.0:1 AAA) and large headings (3.0:1 AA / 4.5:1 AAA)

Against Pure White (#FFFFFF)16.61:1
White Text on #221B2E
AA Normal Text
AAA Normal Text
Against Pure Black (#000000)1.26:1
Black Text on #221B2E
AA Normal Text
AAA Normal Text

Tonal Variations (Shades, Tints & Tones)

Calibrated step variations created by adding black (shades), white (tints), and gray (tones)

Harmonies for #221B2E (Midnight Obsidian)

Classical color wheel pairings calculated from 360-degree rotational angles

Complementary (180°)

Opposite

Triadic (120° / 240°)

Equidistant

Analogous (±30°)

Adjacent

Split-Complementary (150° / 210°)

Soft Contrast

Practical UI/UX Design Usage for #221B2E

Primary Buttons & Focus Rings

With an RGB luminance of 34, 27, 46, this shade works excellently with white text (#FFFFFF) for call-to-action buttons and form focus states.

Background Containers

To use #221B2E as a card background or subtle surface tint, apply an opacity of 5% to 15% (bg-[#221B2E]/10 in Tailwind) to maintain high typography readability.

Data Visualization & Badges

Pair with its complementary accent #262D1A or triadic partner #2D211A to distinguish distinct categories in charts and tables.

Explore More Popular Colors

View All Colors Directory →
Light
#FF5733
Persimmon Red255,87,51
Explore Color Details
Dark
#3B82F6
Bright Blue59,130,246
Explore Color Details
Light
#10B981
Emerald Green16,185,129
Explore Color Details
Light
#F59E0B
Amber Glow245,158,11
Explore Color Details
Dark
#8B5CF6
Vivid Purple139,92,246
Explore Color Details
Light
#EC4899
Pink Rose236,72,153
Explore Color Details

Tools & Utilities for #221B2E

Explore gradients, test contrast ratios, and generate monochromatic shades with #221B2E

All Tools →

Related Educational Guides

Learn how color models, web contrast standards, and conversion mathematics work

All Guides →