#2E1881#2E1881

#2E1881 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.161 H 282.0°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#2E1881
RGBrgb(46, 24, 129)
HSLhsl(253, 69%, 30%)
HSVhsv(253, 81%, 51%)
CMYKcmyk(64.3%, 81.4%, 0%, 49.4%)
CIE-LABlab(19.30, 40.22, -54.73)
CIE-LCHlch(19.30, 67.92, 306.31°)
OKLaboklab(32.24% 0.0337 -0.1579)
OKLCHoklch(32.24% 0.161 282)
XYZxyz(5.4146, 2.8187, 21.0234)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1881 #6B8118
analogous
#183781 #2E1881 #621881
triadic
#2E1881 #812E18 #18812E
tetradic
#2E1881 #811837 #6B8118 #188162
square
#2E1881 #811837 #6B8118 #188162
split-complementary
#2E1881 #816218 #378118
monochromatic
#09051A #1C0E4D #2E1881 #4022B5 #5B39DA

Accessibility & contrast

On white

13.43
#2E1881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2E1881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1881
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1881#FFFFFF#000000##FFFFFF
##2E18811.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1881;
/* rgb */ color: rgb(46, 24, 129);
/* oklch */ color: oklch(32.2% 0.161 282.0);
Tailwind
colors: {
  custom: {
    50: '#7359a7',
    500: '#2e1881',
    950: '#000000',
  },
}
SCSS
$custom: #2e1881;
$custom-light: #7359a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1881",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 252.571,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.32239,
    "c": 0.16144,
    "h": 282
  },
  "luminance": 0.02819
}

Semantic roles & 50–950 ramp

primary
#2E1881
secondary
#9DB540
accent
#EB3CC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1881

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

Preview Lab → · Contrast checker → · Palette generator →

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