#2D2C4E

A color in the Violet family

#2d2c4e is a color in the Violet family: RGB(45, 44, 78), HSL(242°, 28%, 24%), CMYK(42%, 44%, 0%, 69%). Closest named color: midnightblue. Contrast is 13.28:1 on white and 1.58:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#2d2c4e
RGBrgb(45 44 78)
RGB (legacy)rgb(45, 44, 78)
RGB %rgb(18% 17% 31%)
HSLhsl(242 28% 24%)
HSV / HSBhsv(242, 44%, 31%)
HWBhwb(242 17% 69%)
CMYKcmyk(42%, 44%, 0%, 69%)
CIELAB (D50)lab(19.44 8 -21.07)
LCHlch(19.44 22.53 290.79)
OKLaboklab(0.3115 0.0142 -0.0585)
OKLCHoklch(0.3115 0.0602 283.67)
Decimal2960462

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 8.8
Closest web-safe color#333366
Hue242°
Saturation (HSL / HSV)28% / 44%
Lightness (HSL)24%
Brightness or Value (HSV)31%
Luminance (Rec.601 / Rec.709)19% / 18%
Relative luminance (WCAG)0.0291
Red / Green / Blue45 / 44 / 78

WCAG 2.2 Contrast Ratio

On White (#ffffff)
13.28:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.58: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 99.6 / 0 · As background with white / black text: Lc -102.8 / 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: #2d2c4e;
  --color-brand-oklch: oklch(31.15% 0.0602 283.67);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(45 44 78 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2d2c4e] text-[#2d2c4e] border-[#2d2c4e]">