#2E1046#2E1046

#2E1046 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.097 H 306.0°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#2E1046
RGBrgb(46, 16, 70)
HSLhsl(273, 63%, 17%)
HSVhsv(273, 77%, 27%)
CMYKcmyk(34.3%, 77.1%, 0%, 72.5%)
CIE-LABlab(11.91, 26.72, -27.70)
CIE-LCHlch(11.91, 38.49, 313.96°)
OKLaboklab(25.24% 0.0571 -0.0786)
OKLCHoklch(25.24% 0.097 306)
XYZxyz(2.4173, 1.3936, 5.9348)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1046 #284610
analogous
#131046 #2E1046 #461043
triadic
#2E1046 #462E10 #10462E
tetradic
#2E1046 #461310 #284610 #104346
square
#2E1046 #461310 #284610 #104346
split-complementary
#2E1046 #434610 #104613
monochromatic
#100619 #100619 #2E1046 #4F1B78 #6F27AA

Accessibility & contrast

On white

16.42
#2E1046 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1046
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1046#FFFFFF#000000##FFFFFF
##2E10461.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E48
Deuteranopia (green-blind)
#021F45
Tritanopia (blue-blind)
#2A1C29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e1046;
/* rgb */ color: rgb(46, 16, 70);
/* oklch */ color: oklch(25.2% 0.097 306.0);
Tailwind
colors: {
  custom: {
    50: '#69517a',
    500: '#2e1046',
    950: '#000000',
  },
}
SCSS
$custom: #2e1046;
$custom-light: #69517a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1046",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 70
  },
  "hsl": {
    "h": 273.333,
    "s": 62.791,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25243,
    "c": 0.09716,
    "h": 306
  },
  "luminance": 0.01394
}

Semantic roles & 50–950 ramp

primary
#2E1046
secondary
#558032
accent
#E6428B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2E1046

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

Preview Lab → · Contrast checker → · Palette generator →

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