#2E1E6E#2E1E6E

#2E1E6E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.131 H 285.1°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#2E1E6E
RGBrgb(46, 30, 110)
HSLhsl(252, 57%, 27%)
HSVhsv(252, 73%, 43%)
CMYKcmyk(58.2%, 72.7%, 0%, 56.9%)
CIE-LABlab(18.52, 30.81, -43.84)
CIE-LCHlch(18.52, 53.58, 305.10°)
OKLaboklab(31.09% 0.034 -0.1261)
OKLCHoklch(31.09% 0.131 285.1)
XYZxyz(4.4046, 2.6349, 15.0253)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E6E #5E6E1E
analogous
#1E366E #2E1E6E #561E6E
triadic
#2E1E6E #6E2E1E #1E6E2E
tetradic
#2E1E6E #6E1E36 #5E6E1E #1E6E56
square
#2E1E6E #6E1E36 #5E6E1E #1E6E56
split-complementary
#2E1E6E #6E561E #366E1E
monochromatic
#0A0718 #1A113E #2E1E6E #422B9E #593CCA

Accessibility & contrast

On white

13.75
#2E1E6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2E1E6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E6E
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E6E#FFFFFF#000000##FFFFFF
##2E1E6E1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#002B6C
Tritanopia (blue-blind)
#113343
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1e6e;
/* rgb */ color: rgb(46, 30, 110);
/* oklch */ color: oklch(31.1% 0.131 285.1);
Tailwind
colors: {
  custom: {
    50: '#6e5b98',
    500: '#2e1e6e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e6e;
$custom-light: #6e5b98;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e6e",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 110
  },
  "hsl": {
    "h": 252,
    "s": 57.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31093,
    "c": 0.13058,
    "h": 285.1
  },
  "luminance": 0.02635
}

Semantic roles & 50–950 ramp

primary
#2E1E6E
secondary
#90A246
accent
#E047C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1E6E

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

Preview Lab → · Contrast checker → · Palette generator →

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