#2C2A67

A color in the Violet family

#2c2a67 is a color in the Violet family: RGB(44, 42, 103), HSL(242°, 42%, 28%), CMYK(57%, 59%, 0%, 60%). Closest named color: midnightblue. Contrast is 12.85:1 on white and 1.63:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#2c2a67
RGBrgb(44 42 103)
RGB (legacy)rgb(44, 42, 103)
RGB %rgb(17% 16% 40%)
HSLhsl(242 42% 28%)
HSV / HSBhsv(242, 59%, 40%)
HWBhwb(242 16% 60%)
CMYKcmyk(57%, 59%, 0%, 60%)
CIELAB (D50)lab(20.21 15.99 -36.36)
LCHlch(20.21 39.72 293.73)
OKLaboklab(0.3246 0.0187 -0.1023)
OKLCHoklch(0.3246 0.104 280.37)
Decimal2894439

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 5.6
Closest web-safe color#333366
Hue242°
Saturation (HSL / HSV)42% / 59%
Lightness (HSL)28%
Brightness or Value (HSV)40%
Luminance (Rec.601 / Rec.709)19% / 18%
Relative luminance (WCAG)0.0317
Red / Green / Blue44 / 42 / 103

WCAG 2.2 Contrast Ratio

On White (#ffffff)
12.85:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.63: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 98.8 / 0 · As background with white / black text: Lc -102.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: #2c2a67;
  --color-brand-oklch: oklch(32.46% 0.104 280.37);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(44 42 103 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2c2a67] text-[#2c2a67] border-[#2c2a67]">