#330C5A

A color in the Violet family

#330c5a is a color in the Violet family: RGB(51, 12, 90), HSL(270°, 76%, 20%), CMYK(43%, 87%, 0%, 65%). Closest named color: midnightblue. Contrast is 15.66:1 on white and 1.34:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#330c5a
RGBrgb(51 12 90)
RGB (legacy)rgb(51, 12, 90)
RGB %rgb(20% 5% 35%)
HSLhsl(270 76% 20%)
HSV / HSBhsv(270, 87%, 35%)
HWBhwb(270 5% 65%)
CMYKcmyk(43%, 87%, 0%, 65%)
CIELAB (D50)lab(13.35 31.58 -38.85)
LCHlch(13.35 50.06 309.11)
OKLaboklab(0.2735 0.0643 -0.1093)
OKLCHoklch(0.2735 0.1268 300.45)
Decimal3345498

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 6.8
Closest web-safe color#330066
Hue270°
Saturation (HSL / HSV)76% / 87%
Lightness (HSL)20%
Brightness or Value (HSV)35%
Luminance (Rec.601 / Rec.709)13% / 10%
Relative luminance (WCAG)0.017
Red / Green / Blue51 / 12 / 90

WCAG 2.2 Contrast Ratio

On White (#ffffff)
15.66:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.34: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.9 / 0 · As background with white / black text: Lc -104.7 / 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: #330c5a;
  --color-brand-oklch: oklch(27.35% 0.1268 300.45);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(51 12 90 / 50%); }
/* Tailwind CSS */
<div class="bg-[#330c5a] text-[#330c5a] border-[#330c5a]">