#2E1540#2E1540

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

Color values

HEX#2E1540
RGBrgb(46, 21, 64)
HSLhsl(275, 51%, 17%)
HSVhsv(275, 67%, 25%)
CMYKcmyk(28.1%, 67.2%, 0%, 74.9%)
CIE-LABlab(12.53, 22.08, -22.50)
CIE-LCHlch(12.53, 31.52, 314.45°)
OKLaboklab(25.54% 0.0505 -0.0634)
OKLCHoklch(25.54% 0.081 308.6)
XYZxyz(2.3201, 1.4874, 5.0144)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1540 #274015
analogous
#191540 #2E1540 #40153D
triadic
#2E1540 #402E15 #15402E
tetradic
#2E1540 #401915 #274015 #153D40
square
#2E1540 #401915 #274015 #153D40
split-complementary
#2E1540 #3D4015 #154019
monochromatic
#110817 #110817 #2E1540 #4F246E #70339C

Accessibility & contrast

On white

16.19
#2E1540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1540
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1540#FFFFFF#000000##FFFFFF
##2E15401.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052041
Deuteranopia (green-blind)
#0F213F
Tritanopia (blue-blind)
#2B1D28
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e1540;
/* rgb */ color: rgb(46, 21, 64);
/* oklch */ color: oklch(25.5% 0.081 308.6);
Tailwind
colors: {
  custom: {
    50: '#685475',
    500: '#2e1540',
    950: '#000000',
  },
}
SCSS
$custom: #2e1540;
$custom-light: #685475;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1540",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 64
  },
  "hsl": {
    "h": 274.884,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25535,
    "c": 0.08104,
    "h": 308.6
  },
  "luminance": 0.01487
}

Semantic roles & 50–950 ramp

primary
#2E1540
secondary
#537839
accent
#DA4E88
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2E1540

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

Preview Lab → · Contrast checker → · Palette generator →

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