#2E1741#2E1741

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

Color values

HEX#2E1741
RGBrgb(46, 23, 65)
HSLhsl(273, 48%, 17%)
HSVhsv(273, 65%, 25%)
CMYKcmyk(29.2%, 64.6%, 0%, 74.5%)
CIE-LABlab(13.08, 21.08, -22.33)
CIE-LCHlch(13.08, 30.71, 313.36°)
OKLaboklab(25.96% 0.0474 -0.0629)
OKLCHoklch(25.96% 0.079 307)
XYZxyz(2.3870, 1.5753, 5.1783)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1741 #2A4117
analogous
#191741 #2E1741 #41173F
triadic
#2E1741 #412E17 #17412E
tetradic
#2E1741 #411917 #2A4117 #173F41
square
#2E1741 #411917 #2A4117 #173F41
split-complementary
#2E1741 #3F4117 #174119
monochromatic
#100817 #100817 #2E1741 #4E276E #6E379B

Accessibility & contrast

On white

15.97
#2E1741 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1741
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1741#FFFFFF#000000##FFFFFF
##2E17411.0015.971.3215.97
#FFFFFF15.971.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082142
Deuteranopia (green-blind)
#102240
Tritanopia (blue-blind)
#2B1F29
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1741;
/* rgb */ color: rgb(46, 23, 65);
/* oklch */ color: oklch(26.0% 0.079 307.0);
Tailwind
colors: {
  custom: {
    50: '#685576',
    500: '#2e1741',
    950: '#000000',
  },
}
SCSS
$custom: #2e1741;
$custom-light: #685576;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1741",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 65
  },
  "hsl": {
    "h": 272.857,
    "s": 47.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25962,
    "c": 0.07875,
    "h": 307
  },
  "luminance": 0.01575
}

Semantic roles & 50–950 ramp

primary
#2E1741
secondary
#57783C
accent
#D7508D
background
#F6F5F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2E1741

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

Preview Lab → · Contrast checker → · Palette generator →

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