#2E1644#2E1644

#2E1644 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.085 H 305.3°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#2E1644
RGBrgb(46, 22, 68)
HSLhsl(271, 51%, 18%)
HSVhsv(271, 68%, 27%)
CMYKcmyk(32.4%, 67.6%, 0%, 73.3%)
CIE-LABlab(13.06, 22.58, -24.46)
CIE-LCHlch(13.06, 33.29, 312.72°)
OKLaboklab(26.02% 0.049 -0.0691)
OKLCHoklch(26.02% 0.085 305.3)
XYZxyz(2.4568, 1.5720, 5.6417)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1644 #2C4416
analogous
#171644 #2E1644 #441643
triadic
#2E1644 #442E16 #16442E
tetradic
#2E1644 #441716 #2C4416 #164344
square
#2E1644 #441716 #2C4416 #164344
split-complementary
#2E1644 #434416 #164417
monochromatic
#100717 #100717 #2E1644 #4D2572 #6D34A0

Accessibility & contrast

On white

15.98
#2E1644 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1644
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1644#FFFFFF#000000##FFFFFF
##2E16441.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032145
Deuteranopia (green-blind)
#0C2243
Tritanopia (blue-blind)
#2A1F2A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1644;
/* rgb */ color: rgb(46, 22, 68);
/* oklch */ color: oklch(26.0% 0.085 305.3);
Tailwind
colors: {
  custom: {
    50: '#695478',
    500: '#2e1644',
    950: '#000000',
  },
}
SCSS
$custom: #2e1644;
$custom-light: #695478;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1644",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 68
  },
  "hsl": {
    "h": 271.304,
    "s": 51.111,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26018,
    "c": 0.08472,
    "h": 305.3
  },
  "luminance": 0.01572
}

Semantic roles & 50–950 ramp

primary
#2E1644
secondary
#597B3A
accent
#DB4D91
background
#F6F4F7
surface
#EBE8ED
border
#C6C4C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2E1644

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

Preview Lab → · Contrast checker → · Palette generator →

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