#2E1A3A#2E1A3A

#2E1A3A is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.063 H 311.6°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#2E1A3A
RGBrgb(46, 26, 58)
HSLhsl(278, 38%, 16%)
HSVhsv(278, 55%, 23%)
CMYKcmyk(20.7%, 55.2%, 0%, 77.3%)
CIE-LABlab(13.38, 17.12, -16.90)
CIE-LCHlch(13.38, 24.06, 315.38°)
OKLaboklab(26.04% 0.0417 -0.0471)
OKLCHoklch(26.04% 0.063 311.6)
XYZxyz(2.2597, 1.6252, 4.1968)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A3A #263A1A
analogous
#1E1A3A #2E1A3A #3A1A36
triadic
#2E1A3A #3A2E1A #1A3A2E
tetradic
#2E1A3A #3A1E1A #263A1A #1A363A
square
#2E1A3A #3A1E1A #263A1A #1A363A
split-complementary
#2E1A3A #363A1A #1A3A1E
monochromatic
#110915 #110915 #2E1A3A #502D64 #71408F

Accessibility & contrast

On white

15.85
#2E1A3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2E1A3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A3A
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A3A#FFFFFF#000000##FFFFFF
##2E1A3A1.0015.851.3315.85
#FFFFFF15.851.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13213B
Deuteranopia (green-blind)
#182339
Tritanopia (blue-blind)
#2D1F27
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1a3a;
/* rgb */ color: rgb(46, 26, 58);
/* oklch */ color: oklch(26.0% 0.063 311.6);
Tailwind
colors: {
  custom: {
    50: '#675770',
    500: '#2e1a3a',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a3a;
$custom-light: #675770;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a3a",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 58
  },
  "hsl": {
    "h": 277.5,
    "s": 38.095,
    "l": 16.471
  },
  "oklch": {
    "l": 0.26036,
    "c": 0.06291,
    "h": 311.6
  },
  "luminance": 0.01625
}

Semantic roles & 50–950 ramp

primary
#2E1A3A
secondary
#526F40
accent
#CE5A85
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060307
muted
#7A787A

Preview Lab

Preview with #2E1A3A

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

Preview Lab → · Contrast checker → · Palette generator →

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