#2E2A4E

A color in the Violet family

#2e2a4e is a color in the Violet family: RGB(46, 42, 78), HSL(247°, 30%, 24%), CMYK(41%, 46%, 0%, 69%). Closest named color: midnightblue. Contrast is 13.48:1 on white and 1.56:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#2e2a4e
RGBrgb(46 42 78)
RGB (legacy)rgb(46, 42, 78)
RGB %rgb(18% 16% 31%)
HSLhsl(247 30% 24%)
HSV / HSBhsv(247, 46%, 31%)
HWBhwb(247 16% 69%)
CMYKcmyk(41%, 46%, 0%, 69%)
CIELAB (D50)lab(18.93 9.68 -21.86)
LCHlch(18.93 23.91 293.88)
OKLaboklab(0.3079 0.0187 -0.0608)
OKLCHoklch(0.3079 0.0636 287.14)
Decimal3025486

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 8.6
Closest web-safe color#333366
Hue247°
Saturation (HSL / HSV)30% / 46%
Lightness (HSL)24%
Brightness or Value (HSV)31%
Luminance (Rec.601 / Rec.709)19% / 18%
Relative luminance (WCAG)0.0279
Red / Green / Blue46 / 42 / 78

WCAG 2.2 Contrast Ratio

On White (#ffffff)
13.48:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.56: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.9 / 0 · As background with white / black text: Lc -103 / 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: #2e2a4e;
  --color-brand-oklch: oklch(30.79% 0.0636 287.14);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(46 42 78 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2e2a4e] text-[#2e2a4e] border-[#2e2a4e]">