#2E1641#2E1641

#2E1641 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.081 H 307.4°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#2E1641
RGBrgb(46, 22, 65)
HSLhsl(273, 49%, 17%)
HSVhsv(273, 66%, 25%)
CMYKcmyk(29.2%, 66.2%, 0%, 74.5%)
CIE-LABlab(12.84, 21.73, -22.71)
CIE-LCHlch(12.84, 31.43, 313.73°)
OKLaboklab(25.79% 0.049 -0.064)
OKLCHoklch(25.79% 0.081 307.4)
XYZxyz(2.3676, 1.5363, 5.1718)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1641 #294116
analogous
#191641 #2E1641 #41163F
triadic
#2E1641 #412E16 #16412E
tetradic
#2E1641 #411916 #294116 #163F41
square
#2E1641 #411916 #294116 #163F41
split-complementary
#2E1641 #3F4116 #164119
monochromatic
#100817 #100817 #2E1641 #4E256F #6F359C

Accessibility & contrast

On white

16.06
#2E1641 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2E1641 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1641
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1641#FFFFFF#000000##FFFFFF
##2E16411.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062042
Deuteranopia (green-blind)
#0F2140
Tritanopia (blue-blind)
#2B1E29
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e1641;
/* rgb */ color: rgb(46, 22, 65);
/* oklch */ color: oklch(25.8% 0.081 307.4);
Tailwind
colors: {
  custom: {
    50: '#685476',
    500: '#2e1641',
    950: '#000000',
  },
}
SCSS
$custom: #2e1641;
$custom-light: #685476;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1641",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 65
  },
  "hsl": {
    "h": 273.488,
    "s": 49.425,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25785,
    "c": 0.08059,
    "h": 307.4
  },
  "luminance": 0.01536
}

Semantic roles & 50–950 ramp

primary
#2E1641
secondary
#56783A
accent
#D94F8C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2E1641

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

Preview Lab → · Contrast checker → · Palette generator →

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