#2C1946

A color in the Violet family

#2c1946 is a color in the Violet family: RGB(44, 25, 70), HSL(265°, 47%, 19%), CMYK(37%, 64%, 0%, 73%). Closest named color: midnightblue. Contrast is 15.74:1 on white and 1.33:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#2c1946
RGBrgb(44 25 70)
RGB (legacy)rgb(44, 25, 70)
RGB %rgb(17% 10% 27%)
HSLhsl(265 47% 19%)
HSV / HSBhsv(265, 64%, 27%)
HWBhwb(265 10% 73%)
CMYKcmyk(37%, 64%, 0%, 73%)
CIELAB (D50)lab(13.4 18.21 -25.17)
LCHlch(13.4 31.06 305.88)
OKLaboklab(0.2645 0.0413 -0.0705)
OKLCHoklch(0.2645 0.0817 300.37)
Decimal2890054

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 8.4
Closest web-safe color#330033
Hue265°
Saturation (HSL / HSV)47% / 64%
Lightness (HSL)19%
Brightness or Value (HSV)27%
Luminance (Rec.601 / Rec.709)14% / 13%
Relative luminance (WCAG)0.0167
Red / Green / Blue44 / 25 / 70

WCAG 2.2 Contrast Ratio

On White (#ffffff)
15.74:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.33: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.5 / 0 · As background with white / black text: Lc -105.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: #2c1946;
  --color-brand-oklch: oklch(26.45% 0.0817 300.37);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(44 25 70 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2c1946] text-[#2c1946] border-[#2c1946]">