#2E1541#2E1541

#2E1541 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.082 H 307.8°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#2E1541
RGBrgb(46, 21, 65)
HSLhsl(274, 51%, 17%)
HSVhsv(274, 68%, 25%)
CMYKcmyk(29.2%, 67.7%, 0%, 74.5%)
CIE-LABlab(12.60, 22.36, -23.09)
CIE-LCHlch(12.60, 32.14, 314.08°)
OKLaboklab(25.61% 0.0505 -0.0651)
OKLCHoklch(25.61% 0.082 307.8)
XYZxyz(2.3488, 1.4989, 5.1656)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1541 #284115
analogous
#181541 #2E1541 #41153E
triadic
#2E1541 #412E15 #15412E
tetradic
#2E1541 #411815 #284115 #153E41
square
#2E1541 #411815 #284115 #153E41
split-complementary
#2E1541 #3E4115 #154118
monochromatic
#100717 #100717 #2E1541 #4F246F #6F339E

Accessibility & contrast

On white

16.16
#2E1541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1541
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1541#FFFFFF#000000##FFFFFF
##2E15411.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042042
Deuteranopia (green-blind)
#0E2140
Tritanopia (blue-blind)
#2B1E28
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e1541;
/* rgb */ color: rgb(46, 21, 65);
/* oklch */ color: oklch(25.6% 0.082 307.8);
Tailwind
colors: {
  custom: {
    50: '#685476',
    500: '#2e1541',
    950: '#000000',
  },
}
SCSS
$custom: #2e1541;
$custom-light: #685476;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1541",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 65
  },
  "hsl": {
    "h": 274.091,
    "s": 51.163,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25612,
    "c": 0.0824,
    "h": 307.8
  },
  "luminance": 0.01499
}

Semantic roles & 50–950 ramp

primary
#2E1541
secondary
#557939
accent
#DB4D8A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2E1541

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

Preview Lab → · Contrast checker → · Palette generator →

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