#2E1342#2E1342

#2E1342 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.087 H 307.8°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#2E1342
RGBrgb(46, 19, 66)
HSLhsl(274, 55%, 17%)
HSVhsv(274, 71%, 26%)
CMYKcmyk(30.3%, 71.2%, 0%, 74.1%)
CIE-LABlab(12.22, 23.87, -24.40)
CIE-LCHlch(12.22, 34.13, 314.37°)
OKLaboklab(25.36% 0.0534 -0.0689)
OKLCHoklch(25.36% 0.087 307.8)
XYZxyz(2.3428, 1.4400, 5.3077)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1342 #274213
analogous
#171342 #2E1342 #42133F
triadic
#2E1342 #422E13 #13422E
tetradic
#2E1342 #421713 #274213 #133F42
square
#2E1342 #421713 #274213 #133F42
split-complementary
#2E1342 #3F4213 #134217
monochromatic
#110718 #110718 #2E1342 #4F2172 #702EA1

Accessibility & contrast

On white

16.30
#2E1342 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2E1342 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1342
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1342#FFFFFF#000000##FFFFFF
##2E13421.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F43
Deuteranopia (green-blind)
#0B2041
Tritanopia (blue-blind)
#2B1D28
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e1342;
/* rgb */ color: rgb(46, 19, 66);
/* oklch */ color: oklch(25.4% 0.087 307.8);
Tailwind
colors: {
  custom: {
    50: '#695277',
    500: '#2e1342',
    950: '#000000',
  },
}
SCSS
$custom: #2e1342;
$custom-light: #695277;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1342",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 66
  },
  "hsl": {
    "h": 274.468,
    "s": 55.294,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25361,
    "c": 0.08723,
    "h": 307.8
  },
  "luminance": 0.0144
}

Semantic roles & 50–950 ramp

primary
#2E1342
secondary
#537B36
accent
#DF4989
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2E1342

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

Preview Lab → · Contrast checker → · Palette generator →

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