#2E1784#2E1784

#2E1784 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.166 H 281.6°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#2E1784
RGBrgb(46, 23, 132)
HSLhsl(253, 70%, 30%)
HSVhsv(253, 83%, 52%)
CMYKcmyk(65.2%, 82.6%, 0%, 48.2%)
CIE-LABlab(19.47, 41.63, -56.35)
CIE-LCHlch(19.47, 70.06, 306.46°)
OKLaboklab(32.46% 0.0333 -0.1626)
OKLCHoklch(32.46% 0.166 281.6)
XYZxyz(5.5967, 2.8592, 22.0823)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1784 #6D8417
analogous
#173684 #2E1784 #651784
triadic
#2E1784 #842E17 #17842E
tetradic
#2E1784 #841736 #6D8417 #178465
square
#2E1784 #841736 #6D8417 #178465
split-complementary
#2E1784 #846517 #368417
monochromatic
#0A051C #1C0E50 #2E1784 #4020B8 #5B39DC

Accessibility & contrast

On white

13.36
#2E1784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2E1784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1784
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1784#FFFFFF#000000##FFFFFF
##2E17841.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1784;
/* rgb */ color: rgb(46, 23, 132);
/* oklch */ color: oklch(32.5% 0.166 281.6);
Tailwind
colors: {
  custom: {
    50: '#7458a9',
    500: '#2e1784',
    950: '#000000',
  },
}
SCSS
$custom: #2e1784;
$custom-light: #7458a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1784",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 252.661,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32455,
    "c": 0.16597,
    "h": 281.6
  },
  "luminance": 0.0286
}

Semantic roles & 50–950 ramp

primary
#2E1784
secondary
#9FB83F
accent
#ED3BC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1784

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

Preview Lab → · Contrast checker → · Palette generator →

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