#2E1340#2E1340

#2E1340 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.085 H 309.2°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#2E1340
RGBrgb(46, 19, 64)
HSLhsl(276, 54%, 16%)
HSVhsv(276, 70%, 25%)
CMYKcmyk(28.1%, 70.3%, 0%, 74.9%)
CIE-LABlab(12.07, 23.32, -23.24)
CIE-LCHlch(12.07, 32.92, 315.10°)
OKLaboklab(25.2% 0.0535 -0.0655)
OKLCHoklch(25.2% 0.085 309.2)
XYZxyz(2.2848, 1.4168, 5.0026)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1340 #254013
analogous
#181340 #2E1340 #40133C
triadic
#2E1340 #402E13 #13402E
tetradic
#2E1340 #401813 #254013 #133C40
square
#2E1340 #401813 #254013 #133C40
split-complementary
#2E1340 #3C4013 #134018
monochromatic
#110718 #110718 #2E1340 #50216F #722F9E

Accessibility & contrast

On white

16.36
#2E1340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2E1340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1340
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1340#FFFFFF#000000##FFFFFF
##2E13401.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021E41
Deuteranopia (green-blind)
#0D203F
Tritanopia (blue-blind)
#2B1C27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e1340;
/* rgb */ color: rgb(46, 19, 64);
/* oklch */ color: oklch(25.2% 0.085 309.2);
Tailwind
colors: {
  custom: {
    50: '#695275',
    500: '#2e1340',
    950: '#000000',
  },
}
SCSS
$custom: #2e1340;
$custom-light: #695275;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1340",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 64
  },
  "hsl": {
    "h": 276,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25202,
    "c": 0.08461,
    "h": 309.2
  },
  "luminance": 0.01417
}

Semantic roles & 50–950 ramp

primary
#2E1340
secondary
#517936
accent
#DE4A85
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2E1340

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

Preview Lab → · Contrast checker → · Palette generator →

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