#2E1146#2E1146

#2E1146 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.096 H 305.7°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#2E1146
RGBrgb(46, 17, 70)
HSLhsl(273, 61%, 17%)
HSVhsv(273, 76%, 27%)
CMYKcmyk(34.3%, 75.7%, 0%, 72.5%)
CIE-LABlab(12.12, 26.15, -27.38)
CIE-LCHlch(12.12, 37.86, 313.69°)
OKLaboklab(25.39% 0.0558 -0.0777)
OKLCHoklch(25.39% 0.096 305.7)
XYZxyz(2.4324, 1.4240, 5.9399)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1146 #294611
analogous
#131146 #2E1146 #461144
triadic
#2E1146 #462E11 #11462E
tetradic
#2E1146 #461311 #294611 #114446
square
#2E1146 #461311 #294611 #114446
split-complementary
#2E1146 #444611 #114613
monochromatic
#100619 #100619 #2E1146 #4E1D77 #6F29A8

Accessibility & contrast

On white

16.34
#2E1146 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2E1146 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1146
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1146#FFFFFF#000000##FFFFFF
##2E11461.0016.341.2816.34
#FFFFFF16.341.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F48
Deuteranopia (green-blind)
#032045
Tritanopia (blue-blind)
#2A1D29
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e1146;
/* rgb */ color: rgb(46, 17, 70);
/* oklch */ color: oklch(25.4% 0.096 305.7);
Tailwind
colors: {
  custom: {
    50: '#69517a',
    500: '#2e1146',
    950: '#000000',
  },
}
SCSS
$custom: #2e1146;
$custom-light: #69517a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1146",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 70
  },
  "hsl": {
    "h": 272.83,
    "s": 60.92,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25387,
    "c": 0.09564,
    "h": 305.7
  },
  "luminance": 0.01424
}

Semantic roles & 50–950 ramp

primary
#2E1146
secondary
#568033
accent
#E4448C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2E1146

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

Preview Lab → · Contrast checker → · Palette generator →

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