#2E1A79#2E1A79

#2E1A79 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.150 H 283.4°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#2E1A79
RGBrgb(46, 26, 121)
HSLhsl(253, 65%, 29%)
HSVhsv(253, 79%, 47%)
CMYKcmyk(62%, 78.5%, 0%, 52.5%)
CIE-LABlab(18.80, 36.68, -50.47)
CIE-LCHlch(18.80, 62.39, 306.01°)
OKLaboklab(31.63% 0.0347 -0.1455)
OKLCHoklch(31.63% 0.15 283.4)
XYZxyz(4.9462, 2.6998, 18.3459)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A79 #65791A
analogous
#1A3679 #2E1A79 #5E1A79
triadic
#2E1A79 #792E1A #1A792E
tetradic
#2E1A79 #791A36 #65791A #1A795E
square
#2E1A79 #791A36 #65791A #1A795E
split-complementary
#2E1A79 #795E1A #36791A
monochromatic
#0A0519 #1B0F47 #2E1A79 #4125AB #5A39D4

Accessibility & contrast

On white

13.64
#2E1A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2E1A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A79
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A79#FFFFFF#000000##FFFFFF
##2E1A791.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e1a79;
/* rgb */ color: rgb(46, 26, 121);
/* oklch */ color: oklch(31.6% 0.150 283.4);
Tailwind
colors: {
  custom: {
    50: '#7159a1',
    500: '#2e1a79',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a79;
$custom-light: #7159a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a79",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 252.632,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31628,
    "c": 0.14955,
    "h": 283.4
  },
  "luminance": 0.027
}

Semantic roles & 50–950 ramp

primary
#2E1A79
secondary
#97AD41
accent
#E840C4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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