#371C4E

A color in the Purple, Crimson, Magenta family

#371c4e is a color in the Purple, Crimson, Magenta family: RGB(55, 28, 78), HSL(272°, 47%, 21%), CMYK(29%, 64%, 0%, 69%). Closest named color: midnightblue. Contrast is 14.6:1 on white and 1.44:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#371c4e
RGBrgb(55 28 78)
RGB (legacy)rgb(55, 28, 78)
RGB %rgb(22% 11% 31%)
HSLhsl(272 47% 21%)
HSV / HSBhsv(272, 64%, 31%)
HWBhwb(272 11% 69%)
CMYKcmyk(29%, 64%, 0%, 69%)
CIELAB (D50)lab(16.23 21.82 -26.05)
LCHlch(16.23 33.98 309.95)
OKLaboklab(0.2902 0.0539 -0.0728)
OKLCHoklch(0.2902 0.0906 306.5)
Decimal3611726

Properties

Color TonePurple, Crimson, Magenta
Closest named colormidnightblue ΔE 8.5
Closest web-safe color#333366
Hue272°
Saturation (HSL / HSV)47% / 64%
Lightness (HSL)21%
Brightness or Value (HSV)31%
Luminance (Rec.601 / Rec.709)16% / 15%
Relative luminance (WCAG)0.0219
Red / Green / Blue55 / 28 / 78

WCAG 2.2 Contrast Ratio

On White (#ffffff)
14.60:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.44: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.1 / 0 · As background with white / black text: Lc -104.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: #371c4e;
  --color-brand-oklch: oklch(29.02% 0.0906 306.5);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(55 28 78 / 50%); }
/* Tailwind CSS */
<div class="bg-[#371c4e] text-[#371c4e] border-[#371c4e]">