#331237

A color in the Purple, Crimson, Magenta family

#331237 is a color in the Purple, Crimson, Magenta family: RGB(51, 18, 55), HSL(294°, 51%, 14%), CMYK(7%, 67%, 0%, 78%). Closest named color: midnightblue. Contrast is 16.37:1 on white and 1.28:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#331237
RGBrgb(51 18 55)
RGB (legacy)rgb(51, 18, 55)
RGB %rgb(20% 7% 22%)
HSLhsl(294 51% 14%)
HSV / HSBhsv(294, 67%, 22%)
HWBhwb(294 7% 78%)
CMYKcmyk(7%, 67%, 0%, 78%)
CIELAB (D50)lab(11.97 21.75 -16.78)
LCHlch(11.97 27.47 322.35)
OKLaboklab(0.2515 0.0624 -0.0466)
OKLCHoklch(0.2515 0.0779 323.21)
Decimal3346999

Properties

Color TonePurple, Crimson, Magenta
Closest named colormidnightblue ΔE 11.7
Closest web-safe color#330033
Hue294°
Saturation (HSL / HSV)51% / 67%
Lightness (HSL)14%
Brightness or Value (HSV)22%
Luminance (Rec.601 / Rec.709)13% / 11%
Relative luminance (WCAG)0.0141
Red / Green / Blue51 / 18 / 55

WCAG 2.2 Contrast Ratio

On White (#ffffff)
16.37: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 / 0 · As background with white / black text: Lc -105.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: #331237;
  --color-brand-oklch: oklch(25.15% 0.0779 323.21);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(51 18 55 / 50%); }
/* Tailwind CSS */
<div class="bg-[#331237] text-[#331237] border-[#331237]">