#2E1744#2E1744

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

Color values

HEX#2E1744
RGBrgb(46, 23, 68)
HSLhsl(271, 49%, 18%)
HSVhsv(271, 66%, 27%)
CMYKcmyk(32.4%, 66.2%, 0%, 73.3%)
CIE-LABlab(13.30, 21.95, -24.08)
CIE-LCHlch(13.30, 32.58, 312.35°)
OKLaboklab(26.19% 0.0475 -0.068)
OKLCHoklch(26.19% 0.083 304.9)
XYZxyz(2.4763, 1.6110, 5.6482)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1744 #2D4417
analogous
#171744 #2E1744 #441743
triadic
#2E1744 #442E17 #17442E
tetradic
#2E1744 #441717 #2D4417 #174344
square
#2E1744 #441717 #2D4417 #174344
split-complementary
#2E1744 #434417 #174417
monochromatic
#0F0817 #0F0817 #2E1744 #4D2672 #6C369F

Accessibility & contrast

On white

15.88
#2E1744 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1744
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1744#FFFFFF#000000##FFFFFF
##2E17441.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042245
Deuteranopia (green-blind)
#0E2243
Tritanopia (blue-blind)
#2A202A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1744;
/* rgb */ color: rgb(46, 23, 68);
/* oklch */ color: oklch(26.2% 0.083 304.9);
Tailwind
colors: {
  custom: {
    50: '#695578',
    500: '#2e1744',
    950: '#000000',
  },
}
SCSS
$custom: #2e1744;
$custom-light: #695578;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1744",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 68
  },
  "hsl": {
    "h": 270.667,
    "s": 49.451,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26191,
    "c": 0.08294,
    "h": 304.9
  },
  "luminance": 0.01611
}

Semantic roles & 50–950 ramp

primary
#2E1744
secondary
#5B7B3C
accent
#D94F92
background
#F6F5F7
surface
#EBE8ED
border
#C6C4C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2E1744

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

Preview Lab → · Contrast checker → · Palette generator →

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