#2D0021

A color in the Purple, Crimson, Magenta family

#2d0021 is a color in the Purple, Crimson, Magenta family: RGB(45, 0, 33), HSL(316°, 100%, 9%), CMYK(0%, 100%, 27%, 82%). Closest named color: midnightblue. Contrast is 18.53:1 on white and 1.13:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#2d0021
RGBrgb(45 0 33)
RGB (legacy)rgb(45, 0, 33)
RGB %rgb(18% 0% 13%)
HSLhsl(316 100% 9%)
HSV / HSBhsv(316, 100%, 18%)
HWBhwb(316 0% 82%)
CMYKcmyk(0%, 100%, 27%, 82%)
CIELAB (D50)lab(6.11 25.57 -9.63)
LCHlch(6.11 27.33 339.36)
OKLaboklab(0.1999 0.0818 -0.0276)
OKLCHoklch(0.1999 0.0863 341.33)
Decimal2949153

Properties

Color TonePurple, Crimson, Magenta
Closest named colormidnightblue ΔE 16.4
Closest web-safe color#330033
Hue316°
Saturation (HSL / HSV)100% / 100%
Lightness (HSL)9%
Brightness or Value (HSV)18%
Luminance (Rec.601 / Rec.709)7% / 5%
Relative luminance (WCAG)0.0067
Red / Green / Blue45 / 0 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
18.53:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.13:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 104.4 / 0 · As background with white / black text: Lc -106.6 / 0

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #2d0021;
  --color-brand-oklch: oklch(19.99% 0.0863 341.33);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(45 0 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2d0021] text-[#2d0021] border-[#2d0021]">