#2E1543#2E1543

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

Color values

HEX#2E1543
RGBrgb(46, 21, 67)
HSLhsl(273, 52%, 17%)
HSVhsv(273, 69%, 26%)
CMYKcmyk(31.3%, 68.7%, 0%, 73.7%)
CIE-LABlab(12.75, 22.93, -24.26)
CIE-LCHlch(12.75, 33.38, 313.38°)
OKLaboklab(25.77% 0.0505 -0.0685)
OKLCHoklch(25.77% 0.085 306.4)
XYZxyz(2.4078, 1.5224, 5.4761)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1543 #2A4315
analogous
#171543 #2E1543 #431541
triadic
#2E1543 #432E15 #15432E
tetradic
#2E1543 #431715 #2A4315 #154143
square
#2E1543 #431715 #2A4315 #154143
split-complementary
#2E1543 #414315 #154317
monochromatic
#100717 #100717 #2E1543 #4E2472 #6E32A0

Accessibility & contrast

On white

16.10
#2E1543 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1543
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1543#FFFFFF#000000##FFFFFF
##2E15431.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1543;
/* rgb */ color: rgb(46, 21, 67);
/* oklch */ color: oklch(25.8% 0.085 306.4);
Tailwind
colors: {
  custom: {
    50: '#695477',
    500: '#2e1543',
    950: '#000000',
  },
}
SCSS
$custom: #2e1543;
$custom-light: #695477;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1543",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 67
  },
  "hsl": {
    "h": 272.609,
    "s": 52.273,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25769,
    "c": 0.08511,
    "h": 306.4
  },
  "luminance": 0.01522
}

Semantic roles & 50–950 ramp

primary
#2E1543
secondary
#577B39
accent
#DC4C8E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2E1543

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

Preview Lab → · Contrast checker → · Palette generator →

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