#2A1821

A color in the Purple, Crimson, Magenta family

#2a1821 is a color in the Purple, Crimson, Magenta family: RGB(42, 24, 33), HSL(330°, 27%, 13%), CMYK(0%, 43%, 21%, 84%). Closest named color: midnightblue. Contrast is 16.79:1 on white and 1.25:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#2a1821
RGBrgb(42 24 33)
RGB (legacy)rgb(42, 24, 33)
RGB %rgb(16% 9% 13%)
HSLhsl(330 27% 13%)
HSV / HSBhsv(330, 43%, 16%)
HWBhwb(330 9% 84%)
CMYKcmyk(0%, 43%, 21%, 84%)
CIELAB (D50)lab(11.01 10.55 -2.35)
LCHlch(11.01 10.81 347.46)
OKLaboklab(0.2366 0.0319 -0.0065)
OKLCHoklch(0.2366 0.0326 348.49)
Decimal2758689

Properties

Color TonePurple, Crimson, Magenta
Closest named colormidnightblue ΔE 14.8
Closest web-safe color#330033
Hue330°
Saturation (HSL / HSV)27% / 43%
Lightness (HSL)13%
Brightness or Value (HSV)16%
Luminance (Rec.601 / Rec.709)12% / 11%
Relative luminance (WCAG)0.0126
Red / Green / Blue42 / 24 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
16.79:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.25: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 103.7 / 0 · As background with white / black text: Lc -106.1 / 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: #2a1821;
  --color-brand-oklch: oklch(23.66% 0.0326 348.49);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(42 24 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2a1821] text-[#2a1821] border-[#2a1821]">