#2E1A84#2E1A84

#2E1A84 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.163 H 281.2°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#2E1A84
RGBrgb(46, 26, 132)
HSLhsl(251, 67%, 31%)
HSVhsv(251, 80%, 52%)
CMYKcmyk(65.2%, 80.3%, 0%, 48.2%)
CIE-LABlab(19.98, 40.14, -55.50)
CIE-LCHlch(19.98, 68.50, 305.88°)
OKLaboklab(32.81% 0.0316 -0.1601)
OKLCHoklch(32.81% 0.163 281.2)
XYZxyz(5.6597, 2.9851, 22.1033)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A84 #70841A
analogous
#1A3B84 #2E1A84 #631A84
triadic
#2E1A84 #842E1A #1A842E
tetradic
#2E1A84 #841A3B #70841A #1A8463
square
#2E1A84 #841A3B #70841A #1A8463
split-complementary
#2E1A84 #84631A #3B841A
monochromatic
#0A061E #1C1051 #2E1A84 #4024B7 #5C3FD9

Accessibility & contrast

On white

13.15
#2E1A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2E1A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A84
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A84#FFFFFF#000000##FFFFFF
##2E1A841.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1a84;
/* rgb */ color: rgb(46, 26, 132);
/* oklch */ color: oklch(32.8% 0.163 281.2);
Tailwind
colors: {
  custom: {
    50: '#735aa9',
    500: '#2e1a84',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a84;
$custom-light: #735aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a84",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 251.321,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32812,
    "c": 0.16323,
    "h": 281.2
  },
  "luminance": 0.02986
}

Semantic roles & 50–950 ramp

primary
#2E1A84
secondary
#A1B842
accent
#EA3ECA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1A84

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

Preview Lab → · Contrast checker → · Palette generator →

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