#2C1940

A color in the Violet family

#2c1940 is a color in the Violet family: RGB(44, 25, 64), HSL(269°, 44%, 17%), CMYK(31%, 61%, 0%, 75%). Closest named color: midnightblue. Contrast is 15.91:1 on white and 1.32:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#2c1940
RGBrgb(44 25 64)
RGB (legacy)rgb(44, 25, 64)
RGB %rgb(17% 10% 25%)
HSLhsl(269 44% 17%)
HSV / HSBhsv(269, 61%, 25%)
HWBhwb(269 10% 75%)
CMYKcmyk(31%, 61%, 0%, 75%)
CIELAB (D50)lab(13.03 16.8 -21.57)
LCHlch(13.03 27.34 307.91)
OKLaboklab(0.2599 0.0411 -0.0602)
OKLCHoklch(0.2599 0.0729 304.3)
Decimal2890048

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 9.4
Closest web-safe color#330033
Hue269°
Saturation (HSL / HSV)44% / 61%
Lightness (HSL)17%
Brightness or Value (HSV)25%
Luminance (Rec.601 / Rec.709)14% / 12%
Relative luminance (WCAG)0.016
Red / Green / Blue44 / 25 / 64

WCAG 2.2 Contrast Ratio

On White (#ffffff)
15.91:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.32: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: #2c1940;
  --color-brand-oklch: oklch(25.99% 0.0729 304.3);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(44 25 64 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2c1940] text-[#2c1940] border-[#2c1940]">