#2E1446#2E1446

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

Color values

HEX#2E1446
RGBrgb(46, 20, 70)
HSLhsl(271, 56%, 18%)
HSVhsv(271, 71%, 27%)
CMYKcmyk(34.3%, 71.4%, 0%, 72.5%)
CIE-LABlab(12.76, 24.39, -26.34)
CIE-LCHlch(12.76, 35.90, 312.80°)
OKLaboklab(25.85% 0.0518 -0.0746)
OKLCHoklch(25.85% 0.091 304.7)
XYZxyz(2.4821, 1.5234, 5.9564)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1446 #2C4614
analogous
#151446 #2E1446 #461445
triadic
#2E1446 #462E14 #14462E
tetradic
#2E1446 #461514 #2C4614 #144546
square
#2E1446 #461514 #2C4614 #144546
split-complementary
#2E1446 #454614 #144615
monochromatic
#100718 #100718 #2E1446 #4D2276 #6D2FA5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E1446#FFFFFF#000000##FFFFFF
##2E14461.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)
#002048
Deuteranopia (green-blind)
#072145
Tritanopia (blue-blind)
#2A1F2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e1446;
/* rgb */ color: rgb(46, 20, 70);
/* oklch */ color: oklch(25.8% 0.091 304.7);
Tailwind
colors: {
  custom: {
    50: '#69537a',
    500: '#2e1446',
    950: '#000000',
  },
}
SCSS
$custom: #2e1446;
$custom-light: #69537a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1446",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 70
  },
  "hsl": {
    "h": 271.2,
    "s": 55.556,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25847,
    "c": 0.09083,
    "h": 304.7
  },
  "luminance": 0.01523
}

Semantic roles & 50–950 ramp

primary
#2E1446
secondary
#597E38
accent
#DF4991
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2E1446

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

Preview Lab → · Contrast checker → · Palette generator →

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