#2F2139

A color in the Purple, Crimson, Magenta family

#2f2139 is a color in the Purple, Crimson, Magenta family: RGB(47, 33, 57), HSL(275°, 27%, 18%), CMYK(18%, 42%, 0%, 78%). Closest named color: midnightblue. Contrast is 15.03:1 on white and 1.4:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#2f2139
RGBrgb(47 33 57)
RGB (legacy)rgb(47, 33, 57)
RGB %rgb(18% 13% 22%)
HSLhsl(275 27% 18%)
HSV / HSBhsv(275, 42%, 22%)
HWBhwb(275 13% 78%)
CMYKcmyk(18%, 42%, 0%, 78%)
CIELAB (D50)lab(15.33 11.14 -13.03)
LCHlch(15.33 17.14 310.55)
OKLaboklab(0.2758 0.0304 -0.0358)
OKLCHoklch(0.2758 0.047 310.31)
Decimal3088697

Properties

Color TonePurple, Crimson, Magenta
Closest named colormidnightblue ΔE 11.1
Closest web-safe color#333333
Hue275°
Saturation (HSL / HSV)27% / 42%
Lightness (HSL)18%
Brightness or Value (HSV)22%
Luminance (Rec.601 / Rec.709)16% / 15%
Relative luminance (WCAG)0.0199
Red / Green / Blue47 / 33 / 57

WCAG 2.2 Contrast Ratio

On White (#ffffff)
15.03:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.40: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 101.9 / 0 · As background with white / black text: Lc -104.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: #2f2139;
  --color-brand-oklch: oklch(27.58% 0.047 310.31);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(47 33 57 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2f2139] text-[#2f2139] border-[#2f2139]">