#2E1645#2E1645

#2E1645 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.086 H 304.6°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#2E1645
RGBrgb(46, 22, 69)
HSLhsl(271, 52%, 18%)
HSVhsv(271, 68%, 27%)
CMYKcmyk(33.3%, 68.1%, 0%, 72.9%)
CIE-LABlab(13.13, 22.87, -25.04)
CIE-LCHlch(13.13, 33.91, 312.41°)
OKLaboklab(26.1% 0.0489 -0.0708)
OKLCHoklch(26.1% 0.086 304.6)
XYZxyz(2.4876, 1.5843, 5.8038)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1645 #2D4516
analogous
#161645 #2E1645 #451644
triadic
#2E1645 #452E16 #16452E
tetradic
#2E1645 #451616 #2D4516 #164445
square
#2E1645 #451616 #2D4516 #164445
split-complementary
#2E1645 #444516 #164516
monochromatic
#0F0717 #0F0717 #2E1645 #4D2573 #6C34A2

Accessibility & contrast

On white

15.95
#2E1645 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2E1645 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1645
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1645#FFFFFF#000000##FFFFFF
##2E16451.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012146
Deuteranopia (green-blind)
#0B2244
Tritanopia (blue-blind)
#2A202B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1645;
/* rgb */ color: rgb(46, 22, 69);
/* oklch */ color: oklch(26.1% 0.086 304.6);
Tailwind
colors: {
  custom: {
    50: '#695479',
    500: '#2e1645',
    950: '#000000',
  },
}
SCSS
$custom: #2e1645;
$custom-light: #695479;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1645",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 69
  },
  "hsl": {
    "h": 270.638,
    "s": 51.648,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26097,
    "c": 0.08608,
    "h": 304.6
  },
  "luminance": 0.01584
}

Semantic roles & 50–950 ramp

primary
#2E1645
secondary
#5B7C3A
accent
#DB4D92
background
#F6F4F7
surface
#EBE8ED
border
#C6C4C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2E1645

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

Preview Lab → · Contrast checker → · Palette generator →

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