#2E1E3E#2E1E3E

#2E1E3E is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.1% C 0.061 H 305.8°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#2E1E3E
RGBrgb(46, 30, 62)
HSLhsl(270, 35%, 18%)
HSVhsv(270, 52%, 24%)
CMYKcmyk(25.8%, 51.6%, 0%, 75.7%)
CIE-LABlab(14.72, 15.50, -17.62)
CIE-LCHlch(14.72, 23.46, 311.34°)
OKLaboklab(27.11% 0.0355 -0.0492)
OKLCHoklch(27.11% 0.061 305.8)
XYZxyz(2.4603, 1.8572, 4.7854)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E3E #2E3E1E
analogous
#1E1E3E #2E1E3E #3E1E3E
triadic
#2E1E3E #3E2E1E #1E3E2E
tetradic
#2E1E3E #3E1E1E #2E3E1E #1E3E3E
square
#2E1E3E #3E1E1E #2E3E1E #1E3E3E
split-complementary
#2E1E3E #3E3E1E #1E3E1E
monochromatic
#0F0A15 #0F0A15 #2E1E3E #4D3267 #6B4690

Accessibility & contrast

On white

15.31
#2E1E3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2E1E3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E3E
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E3E#FFFFFF#000000##FFFFFF
##2E1E3E1.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16253F
Deuteranopia (green-blind)
#1A253D
Tritanopia (blue-blind)
#2C232B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1e3e;
/* rgb */ color: rgb(46, 30, 62);
/* oklch */ color: oklch(27.1% 0.061 305.8);
Tailwind
colors: {
  custom: {
    50: '#675a73',
    500: '#2e1e3e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e3e;
$custom-light: #675a73;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e3e",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 62
  },
  "hsl": {
    "h": 270,
    "s": 34.783,
    "l": 18.039
  },
  "oklch": {
    "l": 0.27114,
    "c": 0.06063,
    "h": 305.8
  },
  "luminance": 0.01857
}

Semantic roles & 50–950 ramp

primary
#2E1E3E
secondary
#5C7246
accent
#CB5D94
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2E1E3E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2E1E3E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva