#2E1A83#2E1A83

#2E1A83 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.162 H 281.3°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#2E1A83
RGBrgb(46, 26, 131)
HSLhsl(251, 67%, 31%)
HSVhsv(251, 80%, 51%)
CMYKcmyk(64.9%, 80.2%, 0%, 48.6%)
CIE-LABlab(19.87, 39.83, -55.05)
CIE-LCHlch(19.87, 67.95, 305.89°)
OKLaboklab(32.7% 0.0319 -0.1588)
OKLCHoklch(32.7% 0.162 281.3)
XYZxyz(5.5916, 2.9579, 21.7446)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A83 #6F831A
analogous
#1A3A83 #2E1A83 #621A83
triadic
#2E1A83 #832E1A #1A832E
tetradic
#2E1A83 #831A3A #6F831A #1A8362
square
#2E1A83 #831A3A #6F831A #1A8362
split-complementary
#2E1A83 #83621A #3A831A
monochromatic
#0A061D #1C1050 #2E1A83 #4024B6 #5C3FD9

Accessibility & contrast

On white

13.19
#2E1A83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2E1A83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A83
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A83#FFFFFF#000000##FFFFFF
##2E1A831.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1a83;
/* rgb */ color: rgb(46, 26, 131);
/* oklch */ color: oklch(32.7% 0.162 281.3);
Tailwind
colors: {
  custom: {
    50: '#735aa8',
    500: '#2e1a83',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a83;
$custom-light: #735aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a83",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 131
  },
  "hsl": {
    "h": 251.429,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32703,
    "c": 0.162,
    "h": 281.3
  },
  "luminance": 0.02958
}

Semantic roles & 50–950 ramp

primary
#2E1A83
secondary
#A0B742
accent
#EA3EC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1A83

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

Preview Lab → · Contrast checker → · Palette generator →

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