#330C4A

A color in the Purple, Crimson, Magenta family

#330c4a is a color in the Purple, Crimson, Magenta family: RGB(51, 12, 74), HSL(278°, 72%, 17%), CMYK(31%, 84%, 0%, 71%). Closest named color: midnightblue. Contrast is 16.25:1 on white and 1.29:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#330c4a
RGBrgb(51 12 74)
RGB (legacy)rgb(51, 12, 74)
RGB %rgb(20% 5% 29%)
HSLhsl(278 72% 17%)
HSV / HSBhsv(278, 84%, 29%)
HWBhwb(278 5% 71%)
CMYKcmyk(31%, 84%, 0%, 71%)
CIELAB (D50)lab(12.06 28.31 -30.03)
LCHlch(12.06 41.27 313.31)
OKLaboklab(0.2584 0.069 -0.0843)
OKLCHoklch(0.2584 0.1089 309.27)
Decimal3345482

Properties

Color TonePurple, Crimson, Magenta
Closest named colormidnightblue ΔE 9.1
Closest web-safe color#330033
Hue278°
Saturation (HSL / HSV)72% / 84%
Lightness (HSL)17%
Brightness or Value (HSV)29%
Luminance (Rec.601 / Rec.709)12% / 10%
Relative luminance (WCAG)0.0146
Red / Green / Blue51 / 12 / 74

WCAG 2.2 Contrast Ratio

On White (#ffffff)
16.25:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.29: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.6 / 0 · As background with white / black text: Lc -105.3 / 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: #330c4a;
  --color-brand-oklch: oklch(25.84% 0.1089 309.27);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(51 12 74 / 50%); }
/* Tailwind CSS */
<div class="bg-[#330c4a] text-[#330c4a] border-[#330c4a]">