#2E116A

A color in the Violet family

#2e116a is a color in the Violet family: RGB(46, 17, 106), HSL(260°, 72%, 24%), CMYK(57%, 84%, 0%, 58%). Closest named color: midnightblue. Contrast is 14.95:1 on white and 1.4:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#2e116a
RGBrgb(46 17 106)
RGB (legacy)rgb(46, 17, 106)
RGB %rgb(18% 7% 42%)
HSLhsl(260 72% 24%)
HSV / HSBhsv(260, 84%, 42%)
HWBhwb(260 7% 58%)
CMYKcmyk(57%, 84%, 0%, 58%)
CIELAB (D50)lab(14.86 32.03 -47.02)
LCHlch(14.86 56.89 304.27)
OKLaboklab(0.2891 0.0461 -0.1324)
OKLCHoklch(0.2891 0.1402 289.2)
Decimal3019114

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 4.1
Closest web-safe color#330066
Hue260°
Saturation (HSL / HSV)72% / 84%
Lightness (HSL)24%
Brightness or Value (HSV)42%
Luminance (Rec.601 / Rec.709)14% / 12%
Relative luminance (WCAG)0.0202
Red / Green / Blue46 / 17 / 106

WCAG 2.2 Contrast Ratio

On White (#ffffff)
14.95:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.40: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 101.1 / 0 · As background with white / black text: Lc -104 / 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: #2e116a;
  --color-brand-oklch: oklch(28.91% 0.1402 289.2);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(46 17 106 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2e116a] text-[#2e116a] border-[#2e116a]">