#2E1542#2E1542

#2E1542 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.084 H 307.1°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#2E1542
RGBrgb(46, 21, 66)
HSLhsl(273, 52%, 17%)
HSVhsv(273, 68%, 26%)
CMYKcmyk(30.3%, 68.2%, 0%, 74.1%)
CIE-LABlab(12.67, 22.64, -23.67)
CIE-LCHlch(12.67, 32.76, 313.72°)
OKLaboklab(25.69% 0.0505 -0.0668)
OKLCHoklch(25.69% 0.084 307.1)
XYZxyz(2.3780, 1.5105, 5.3195)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1542 #294215
analogous
#181542 #2E1542 #421540
triadic
#2E1542 #422E15 #15422E
tetradic
#2E1542 #421815 #294215 #154042
square
#2E1542 #421815 #294215 #154042
split-complementary
#2E1542 #404215 #154218
monochromatic
#100717 #100717 #2E1542 #4E2470 #6F339F

Accessibility & contrast

On white

16.13
#2E1542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1542
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1542#FFFFFF#000000##FFFFFF
##2E15421.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1542;
/* rgb */ color: rgb(46, 21, 66);
/* oklch */ color: oklch(25.7% 0.084 307.1);
Tailwind
colors: {
  custom: {
    50: '#695477',
    500: '#2e1542',
    950: '#000000',
  },
}
SCSS
$custom: #2e1542;
$custom-light: #695477;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1542",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 66
  },
  "hsl": {
    "h": 273.333,
    "s": 51.724,
    "l": 17.059
  },
  "oklch": {
    "l": 0.2569,
    "c": 0.08376,
    "h": 307.1
  },
  "luminance": 0.01511
}

Semantic roles & 50–950 ramp

primary
#2E1542
secondary
#567A39
accent
#DB4D8C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2E1542

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

Preview Lab → · Contrast checker → · Palette generator →

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