#2E1A81#2E1A81

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

Color values

HEX#2E1A81
RGBrgb(46, 26, 129)
HSLhsl(252, 66%, 30%)
HSVhsv(252, 80%, 51%)
CMYKcmyk(64.3%, 79.8%, 0%, 49.4%)
CIE-LABlab(19.66, 39.20, -54.15)
CIE-LCHlch(19.66, 66.85, 305.91°)
OKLaboklab(32.49% 0.0325 -0.1562)
OKLCHoklch(32.49% 0.16 281.7)
XYZxyz(5.4573, 2.9042, 21.0376)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A81 #6D811A
analogous
#1A3A81 #2E1A81 #611A81
triadic
#2E1A81 #812E1A #1A812E
tetradic
#2E1A81 #811A3A #6D811A #1A8161
square
#2E1A81 #811A3A #6D811A #1A8161
split-complementary
#2E1A81 #81611A #3A811A
monochromatic
#0A051B #1C104E #2E1A81 #4024B4 #5B3DD8

Accessibility & contrast

On white

13.28
#2E1A81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2E1A81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A81
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A81#FFFFFF#000000##FFFFFF
##2E1A811.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1a81;
/* rgb */ color: rgb(46, 26, 129);
/* oklch */ color: oklch(32.5% 0.160 281.7);
Tailwind
colors: {
  custom: {
    50: '#735aa7',
    500: '#2e1a81',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a81;
$custom-light: #735aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a81",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 129
  },
  "hsl": {
    "h": 251.65,
    "s": 66.452,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32485,
    "c": 0.15954,
    "h": 281.7
  },
  "luminance": 0.02905
}

Semantic roles & 50–950 ramp

primary
#2E1A81
secondary
#9FB542
accent
#E93EC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1A81

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

Preview Lab → · Contrast checker → · Palette generator →

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