#2E1E6A#2E1E6A

#2E1E6A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.125 H 286.1°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#2E1E6A
RGBrgb(46, 30, 106)
HSLhsl(253, 56%, 27%)
HSVhsv(253, 72%, 42%)
CMYKcmyk(56.6%, 71.7%, 0%, 58.4%)
CIE-LABlab(18.14, 29.49, -41.85)
CIE-LCHlch(18.14, 51.19, 305.17°)
OKLaboklab(30.71% 0.0347 -0.1202)
OKLCHoklch(30.71% 0.125 286.1)
XYZxyz(4.1917, 2.5498, 13.9042)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E6A #5A6A1E
analogous
#1E346A #2E1E6A #541E6A
triadic
#2E1E6A #6A2E1E #1E6A2E
tetradic
#2E1E6A #6A1E34 #5A6A1E #1E6A54
square
#2E1E6A #6A1E34 #5A6A1E #1E6A54
split-complementary
#2E1E6A #6A541E #346A1E
monochromatic
#0A0718 #19113A #2E1E6A #432C9A #593BC7

Accessibility & contrast

On white

13.91
#2E1E6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2E1E6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E6A
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E6A#FFFFFF#000000##FFFFFF
##2E1E6A1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002A69
Tritanopia (blue-blind)
#153141
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1e6a;
/* rgb */ color: rgb(46, 30, 106);
/* oklch */ color: oklch(30.7% 0.125 286.1);
Tailwind
colors: {
  custom: {
    50: '#6e5b95',
    500: '#2e1e6a',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e6a;
$custom-light: #6e5b95;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e6a",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 106
  },
  "hsl": {
    "h": 252.632,
    "s": 55.882,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30707,
    "c": 0.12515,
    "h": 286.1
  },
  "luminance": 0.0255
}

Semantic roles & 50–950 ramp

primary
#2E1E6A
secondary
#8C9E45
accent
#DF49BF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #2E1E6A

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

Preview Lab → · Contrast checker → · Palette generator →

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