#2E1643#2E1643

#2E1643 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 25.9% C 0.083 H 306.0°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#2E1643
RGBrgb(46, 22, 67)
HSLhsl(272, 51%, 17%)
HSVhsv(272, 67%, 26%)
CMYKcmyk(31.3%, 67.2%, 0%, 73.7%)
CIE-LABlab(12.98, 22.30, -23.88)
CIE-LCHlch(12.98, 32.67, 313.03°)
OKLaboklab(25.94% 0.049 -0.0674)
OKLCHoklch(25.94% 0.083 306)
XYZxyz(2.4265, 1.5599, 5.4824)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1643 #2B4316
analogous
#171643 #2E1643 #431642
triadic
#2E1643 #432E16 #16432E
tetradic
#2E1643 #431716 #2B4316 #164243
square
#2E1643 #431716 #2B4316 #164243
split-complementary
#2E1643 #424316 #164317
monochromatic
#100817 #100817 #2E1643 #4E2571 #6D349F

Accessibility & contrast

On white

16.01
#2E1643 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2E1643 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1643
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1643#FFFFFF#000000##FFFFFF
##2E16431.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042144
Deuteranopia (green-blind)
#0D2242
Tritanopia (blue-blind)
#2A1F2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e1643;
/* rgb */ color: rgb(46, 22, 67);
/* oklch */ color: oklch(25.9% 0.083 306.0);
Tailwind
colors: {
  custom: {
    50: '#695477',
    500: '#2e1643',
    950: '#000000',
  },
}
SCSS
$custom: #2e1643;
$custom-light: #695477;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1643",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 67
  },
  "hsl": {
    "h": 272,
    "s": 50.562,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25939,
    "c": 0.08334,
    "h": 306
  },
  "luminance": 0.0156
}

Semantic roles & 50–950 ramp

primary
#2E1643
secondary
#587A3A
accent
#DA4E8F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2E1643

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

Preview Lab → · Contrast checker → · Palette generator →

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