#271D21

A color in the Red, Pink family

#271d21 is a color in the Red, Pink family: RGB(39, 29, 33), HSL(336°, 15%, 13%), CMYK(0%, 26%, 15%, 85%). Closest named color: midnightblue. Contrast is 16.36:1 on white and 1.28:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#271d21
RGBrgb(39 29 33)
RGB (legacy)rgb(39, 29, 33)
RGB %rgb(15% 11% 13%)
HSLhsl(336 15% 13%)
HSV / HSBhsv(336, 26%, 15%)
HWBhwb(336 11% 85%)
CMYKcmyk(0%, 26%, 15%, 85%)
CIELAB (D50)lab(12.12 5.67 -0.79)
LCHlch(12.12 5.73 352.08)
OKLaboklab(0.2443 0.017 -0.0022)
OKLCHoklch(0.2443 0.0171 352.52)
Decimal2563361

Properties

Color ToneRed, Pink
Closest named colormidnightblue ΔE 14.8
Closest web-safe color#333333
Hue336°
Saturation (HSL / HSV)15% / 26%
Lightness (HSL)13%
Brightness or Value (HSV)15%
Luminance (Rec.601 / Rec.709)13% / 12%
Relative luminance (WCAG)0.0142
Red / Green / Blue39 / 29 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
16.36:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.28: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.3 / 0 · As background with white / black text: Lc -105.8 / 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: #271d21;
  --color-brand-oklch: oklch(24.43% 0.0171 352.52);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(39 29 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#271d21] text-[#271d21] border-[#271d21]">