#2E1E4E#2E1E4E

#2E1E4E is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.3% C 0.085 H 295.9°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#2E1E4E
RGBrgb(46, 30, 78)
HSLhsl(260, 44%, 21%)
HSVhsv(260, 62%, 31%)
CMYKcmyk(41%, 61.5%, 0%, 69.4%)
CIE-LABlab(15.80, 20.36, -26.97)
CIE-LCHlch(15.80, 33.79, 307.05°)
OKLaboklab(28.26% 0.0371 -0.0765)
OKLCHoklch(28.26% 0.085 295.9)
XYZxyz(2.9658, 2.0594, 7.4475)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E4E #3E4E1E
analogous
#1E264E #2E1E4E #461E4E
triadic
#2E1E4E #4E2E1E #1E4E2E
tetradic
#2E1E4E #4E1E26 #3E4E1E #1E4E46
square
#2E1E4E #4E1E26 #3E4E1E #1E4E46
split-complementary
#2E1E4E #4E461E #264E1E
monochromatic
#0D0916 #140D22 #2E1E4E #482F7A #6240A6

Accessibility & contrast

On white

14.87
#2E1E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2E1E4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E4E
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E4E#FFFFFF#000000##FFFFFF
##2E1E4E1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072850
Deuteranopia (green-blind)
#0C274D
Tritanopia (blue-blind)
#262832
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e1e4e;
/* rgb */ color: rgb(46, 30, 78);
/* oklch */ color: oklch(28.3% 0.085 295.9);
Tailwind
colors: {
  custom: {
    50: '#695a80',
    500: '#2e1e4e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e4e;
$custom-light: #695a80;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e4e",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 78
  },
  "hsl": {
    "h": 260,
    "s": 44.444,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28263,
    "c": 0.08504,
    "h": 295.9
  },
  "luminance": 0.02059
}

Semantic roles & 50–950 ramp

primary
#2E1E4E
secondary
#6E8345
accent
#D454A9
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2E1E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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