What is hex #20003E color?

 
The hex code #20003E is closest to the named color Dark Purple (#301934).
In professional design frameworks, this hue is considered a deep, muted shade. It is excellent for rich backgrounds, high-contrast typography, or sophisticated dark mode user interfaces.

From a technical standpoint, this color is composed of 13% red, 0% green and 24% blue, resulting in rgb(32, 0, 62) and hsl(271, 100%, 12%).
For print media and manufacturing layout, the CMYK equivalent is (48%, 100%, 0%, 76%).
In the HSV/HSB scale, #20003E features a hue of 271°, 100% saturation, and 24% brightness.

Hex #20003E Color Codes & Conversions

Closest Named Color
Dark Purple (#301934)
Hex Code #20003E
Hex8 (RGBA Hex) #20003EFF
RGB (CSS) rgb(32, 0, 62)
RGBA (CSS) rgba(32, 0, 62, 1)
HSL (CSS) hsl(271, 100%, 12%)
HSLA (CSS) hsla(271, 100%, 12%, 1)
HSV / HSB (271°, 100%, 24%)
CMYK Values (48%, 100%, 0%, 76%)
OKLCH (Modern CSS) oklch(20.2% 0.107 300.6)
CIE-LAB (D65) 5.92, 29.97, -31.90
CIE XYZ 1.46, 0.65, 4.61
Decimal / Binary 2097214
00100000 00000000 00111110

Closest Standards & Equivalents

Closest Web Safe
#330033
Inverse Color
#DFFFC1
Complementary Color
#1E3E00
Closest Pantone®
Pantone 2765 C
Closest RAL
RAL 5011 [Steel blue]

#20003E Grayscale Equivalents

Average
#1F1F1F
Lightness (Desaturation)
#1F1F1F
Weighted (BT601)
#111111
Luma (BT709)
#0B0B0B

WCAG 2.1 Color Contrast & Accessibility

Check how #20003E complies with web accessibility standards (WCAG AA & AAA) for typography. Need to test against another custom color? Use our interactive contrast checker.

White Text on #20003E

Sample preview of readable typography on top of #20003E.

Contrast Ratio: 18.57:1
AA Pass AAA Pass

Black Text on #20003E

Sample preview of readable typography on top of #20003E.

Contrast Ratio: 1.13:1
AA Fail AAA Fail

HTML / CSS Live Previews & Snippets for #20003E

Preview #20003E in real UI elements and copy ready-to-use CSS rules.

Background Preview
background-color: #20003E;
Typography Color Preview
color: #20003E;
Border & Shadow Preview
border: 2px solid #20003E;
CSS Custom Properties & Gradient
:root {
  --color-primary: #20003E;
  --color-primary-rgb: 32, 0, 62;
  --color-complementary: #1E3E00;
}
.btn-accent {
  background-color: #20003E;
  color: #ffffff;
}

Hex #20003E Color Palettes

Complementary Palette

The complementary color of #20003E is #1E3E00. Opposite on the color wheel, placing these two colors next to each other creates the strongest visual contrast.

Analogous Palette

The analogous color scheme of #20003E pairs with #01003E and #3E003D, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

The split-complementary scheme of #20003E pairs with #003E00 and #3D3E00, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #20003E uses #003E20 and #3E2000, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #20003E combines #3E2000, #1E3E00 and #001E3E around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #20003E pairs with #3E0000, #1E3E00 and #003D3E spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #20003E

Tints

Tints are created by mixing #20003E with white, producing lighter variations.

Tones

Tones are created by mixing #20003E with gray, softening saturation.

Shades

Shades result from mixing #20003E with black, creating deeper variations.

Hex #20003E in Programming & CSS Frameworks

Copy the exact syntax for #20003E in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:

HTML / CSS #20003E
Tailwind CSS bg-[#20003E] text-[#20003E]
Java (AWT) new Color(32,0,62);
Python Color("#20003E")
.NET (C#) Color.FromArgb(255, 32,0,62);
Swift / iOS UIColor(red: 0.13, green: 0, blue: 0.24, alpha: 1)
Kotlin / Android Color.rgb(32, 0, 62)