#2E1D41#2E1D41

#2E1D41 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.1% C 0.067 H 304.1°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#2E1D41
RGBrgb(46, 29, 65)
HSLhsl(268, 38%, 18%)
HSVhsv(268, 55%, 25%)
CMYKcmyk(29.2%, 55.4%, 0%, 74.5%)
CIE-LABlab(14.63, 17.06, -19.86)
CIE-LCHlch(14.63, 26.18, 310.68°)
OKLaboklab(27.11% 0.0377 -0.0557)
OKLCHoklch(27.11% 0.067 304.1)
XYZxyz(2.5200, 1.8412, 5.2226)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D41 #30411D
analogous
#1D1E41 #2E1D41 #401D41
triadic
#2E1D41 #412E1D #1D412E
tetradic
#2E1D41 #411D1E #30411D #1D4140
square
#2E1D41 #411D1E #30411D #1D4140
split-complementary
#2E1D41 #41401D #1E411D
monochromatic
#0F0915 #100A17 #2E1D41 #4C306B #6A4396

Accessibility & contrast

On white

15.35
#2E1D41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2E1D41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D41
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D41#FFFFFF#000000##FFFFFF
##2E1D411.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122442
Deuteranopia (green-blind)
#172540
Tritanopia (blue-blind)
#2B232C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1d41;
/* rgb */ color: rgb(46, 29, 65);
/* oklch */ color: oklch(27.1% 0.067 304.1);
Tailwind
colors: {
  custom: {
    50: '#685976',
    500: '#2e1d41',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d41;
$custom-light: #685976;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d41",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 65
  },
  "hsl": {
    "h": 268.333,
    "s": 38.298,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27109,
    "c": 0.06722,
    "h": 304.1
  },
  "luminance": 0.01841
}

Semantic roles & 50–950 ramp

primary
#2E1D41
secondary
#5E7644
accent
#CE5A97
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2E1D41

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

Preview Lab → · Contrast checker → · Palette generator →

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