#330C49

A color in the Purple, Crimson, Magenta family

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

Open in Picker Generate Scheme

Color Codes

HEX#330c49
RGBrgb(51 12 73)
RGB (legacy)rgb(51, 12, 73)
RGB %rgb(20% 5% 29%)
HSLhsl(278 72% 17%)
HSV / HSBhsv(278, 84%, 29%)
HWBhwb(278 5% 71%)
CMYKcmyk(30%, 84%, 0%, 71%)
CIELAB (D50)lab(11.98 28.12 -29.46)
LCHlch(11.98 40.72 313.66)
OKLaboklab(0.2575 0.0692 -0.0827)
OKLCHoklch(0.2575 0.1078 309.9)
Decimal3345481

Properties

Color TonePurple, Crimson, Magenta
Closest named colormidnightblue ΔE 9.2
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.0145
Red / Green / Blue51 / 12 / 73

WCAG 2.2 Contrast Ratio

On White (#ffffff)
16.28: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.7 / 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: #330c49;
  --color-brand-oklch: oklch(25.75% 0.1078 309.9);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(51 12 73 / 50%); }
/* Tailwind CSS */
<div class="bg-[#330c49] text-[#330c49] border-[#330c49]">