#2E1A41#2E1A41

#2E1A41 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.5% C 0.073 H 305.7°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#2E1A41
RGBrgb(46, 26, 65)
HSLhsl(271, 43%, 18%)
HSVhsv(271, 60%, 25%)
CMYKcmyk(29.2%, 60%, 0%, 74.5%)
CIE-LABlab(13.83, 19.10, -21.12)
CIE-LCHlch(13.83, 28.48, 312.13°)
OKLaboklab(26.52% 0.0426 -0.0594)
OKLCHoklch(26.52% 0.073 305.7)
XYZxyz(2.4500, 1.7013, 5.1993)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A41 #2D411A
analogous
#1A1A41 #2E1A41 #411A40
triadic
#2E1A41 #412E1A #1A412E
tetradic
#2E1A41 #411A1A #2D411A #1A4041
square
#2E1A41 #411A1A #2D411A #1A4041
split-complementary
#2E1A41 #40411A #1A411A
monochromatic
#0F0916 #0F0916 #2E1A41 #4D2B6D #6C3D98

Accessibility & contrast

On white

15.67
#2E1A41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2E1A41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A41
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A41#FFFFFF#000000##FFFFFF
##2E1A411.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2342
Deuteranopia (green-blind)
#142340
Tritanopia (blue-blind)
#2B212A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1a41;
/* rgb */ color: rgb(46, 26, 65);
/* oklch */ color: oklch(26.5% 0.073 305.7);
Tailwind
colors: {
  custom: {
    50: '#685776',
    500: '#2e1a41',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a41;
$custom-light: #685776;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a41",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 65
  },
  "hsl": {
    "h": 270.769,
    "s": 42.857,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26518,
    "c": 0.07308,
    "h": 305.7
  },
  "luminance": 0.01701
}

Semantic roles & 50–950 ramp

primary
#2E1A41
secondary
#5B7740
accent
#D35592
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2E1A41

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

Preview Lab → · Contrast checker → · Palette generator →

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