#2E283F

A color in the Violet family

#2e283f is a color in the Violet family: RGB(46, 40, 63), HSL(256°, 22%, 20%), CMYK(27%, 37%, 0%, 75%). Closest named color: midnightblue. Contrast is 14.08:1 on white and 1.49:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#2e283f
RGBrgb(46 40 63)
RGB (legacy)rgb(46, 40, 63)
RGB %rgb(18% 16% 25%)
HSLhsl(256 22% 20%)
HSV / HSBhsv(256, 37%, 25%)
HWBhwb(256 16% 75%)
CMYKcmyk(27%, 37%, 0%, 75%)
CIELAB (D50)lab(17.6 7.37 -13.72)
LCHlch(17.6 15.57 298.25)
OKLaboklab(0.2941 0.0181 -0.0377)
OKLCHoklch(0.2941 0.0418 295.7)
Decimal3024959

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 10.7
Closest web-safe color#333333
Hue256°
Saturation (HSL / HSV)22% / 37%
Lightness (HSL)20%
Brightness or Value (HSV)25%
Luminance (Rec.601 / Rec.709)17% / 17%
Relative luminance (WCAG)0.0246
Red / Green / Blue46 / 40 / 63

WCAG 2.2 Contrast Ratio

On White (#ffffff)
14.08:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.49: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 100.7 / 0 · As background with white / black text: Lc -103.7 / 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: #2e283f;
  --color-brand-oklch: oklch(29.41% 0.0418 295.7);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(46 40 63 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2e283f] text-[#2e283f] border-[#2e283f]">