#2E1346#2E1346

#2E1346 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.092 H 305.1°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#2E1346
RGBrgb(46, 19, 70)
HSLhsl(272, 57%, 17%)
HSVhsv(272, 73%, 27%)
CMYKcmyk(34.3%, 72.9%, 0%, 72.5%)
CIE-LABlab(12.54, 24.99, -26.70)
CIE-LCHlch(12.54, 36.57, 313.11°)
OKLaboklab(25.69% 0.0531 -0.0757)
OKLCHoklch(25.69% 0.092 305.1)
XYZxyz(2.4648, 1.4888, 5.9507)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1346 #2B4613
analogous
#151346 #2E1346 #461344
triadic
#2E1346 #462E13 #13462E
tetradic
#2E1346 #461513 #2B4613 #134446
square
#2E1346 #461513 #2B4613 #134446
split-complementary
#2E1346 #444613 #134615
monochromatic
#100718 #100718 #2E1346 #4E2076 #6D2DA6

Accessibility & contrast

On white

16.18
#2E1346 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2E1346 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1346
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1346#FFFFFF#000000##FFFFFF
##2E13461.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002048
Deuteranopia (green-blind)
#062145
Tritanopia (blue-blind)
#2A1E2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e1346;
/* rgb */ color: rgb(46, 19, 70);
/* oklch */ color: oklch(25.7% 0.092 305.1);
Tailwind
colors: {
  custom: {
    50: '#69537a',
    500: '#2e1346',
    950: '#000000',
  },
}
SCSS
$custom: #2e1346;
$custom-light: #69537a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1346",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 70
  },
  "hsl": {
    "h": 271.765,
    "s": 57.303,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25689,
    "c": 0.09247,
    "h": 305.1
  },
  "luminance": 0.01489
}

Semantic roles & 50–950 ramp

primary
#2E1346
secondary
#587F36
accent
#E1478F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2E1346

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

Preview Lab → · Contrast checker → · Palette generator →

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