#3F1237

A color in the Purple, Crimson, Magenta family

#3f1237 is a color in the Purple, Crimson, Magenta family: RGB(63, 18, 55), HSL(311°, 56%, 16%), CMYK(0%, 71%, 13%, 75%). Closest named color: midnightblue. Contrast is 15.52:1 on white and 1.35:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#3f1237
RGBrgb(63 18 55)
RGB (legacy)rgb(63, 18, 55)
RGB %rgb(25% 7% 22%)
HSLhsl(311 56% 16%)
HSV / HSBhsv(311, 71%, 25%)
HWBhwb(311 7% 75%)
CMYKcmyk(0%, 71%, 13%, 75%)
CIELAB (D50)lab(14.24 25.99 -13.05)
LCHlch(14.24 29.08 333.35)
OKLaboklab(0.2717 0.0787 -0.0361)
OKLCHoklch(0.2717 0.0866 335.36)
Decimal4133431

Properties

Color TonePurple, Crimson, Magenta
Closest named colormidnightblue ΔE 13
Closest web-safe color#330033
Hue311°
Saturation (HSL / HSV)56% / 71%
Lightness (HSL)16%
Brightness or Value (HSV)25%
Luminance (Rec.601 / Rec.709)14% / 12%
Relative luminance (WCAG)0.0177
Red / Green / Blue63 / 18 / 55

WCAG 2.2 Contrast Ratio

On White (#ffffff)
15.52:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.35: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 102 / 0 · As background with white / black text: Lc -104.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: #3f1237;
  --color-brand-oklch: oklch(27.17% 0.0866 335.36);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(63 18 55 / 50%); }
/* Tailwind CSS */
<div class="bg-[#3f1237] text-[#3f1237] border-[#3f1237]">