#2E1A89#2E1A89

#2E1A89 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.169 H 280.2°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#2E1A89
RGBrgb(46, 26, 137)
HSLhsl(251, 68%, 32%)
HSVhsv(251, 81%, 54%)
CMYKcmyk(66.4%, 81%, 0%, 46.3%)
CIE-LABlab(20.54, 41.70, -57.73)
CIE-LCHlch(20.54, 71.22, 305.84°)
OKLaboklab(33.36% 0.0301 -0.1666)
OKLCHoklch(33.36% 0.169 280.2)
XYZxyz(6.0100, 3.1253, 23.9486)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A89 #75891A
analogous
#1A3E89 #2E1A89 #661A89
triadic
#2E1A89 #892E1A #1A892E
tetradic
#2E1A89 #891A3E #75891A #1A8966
square
#2E1A89 #891A3E #75891A #1A8966
split-complementary
#2E1A89 #89661A #3E891A
monochromatic
#0B0622 #1D1056 #2E1A89 #3F24BC #5E42DB

Accessibility & contrast

On white

12.92
#2E1A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2E1A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A89
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A89#FFFFFF#000000##FFFFFF
##2E1A891.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1a89;
/* rgb */ color: rgb(46, 26, 137);
/* oklch */ color: oklch(33.4% 0.169 280.2);
Tailwind
colors: {
  custom: {
    50: '#745aad',
    500: '#2e1a89',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a89;
$custom-light: #745aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a89",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 250.811,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33363,
    "c": 0.16933,
    "h": 280.2
  },
  "luminance": 0.03126
}

Semantic roles & 50–950 ramp

primary
#2E1A89
secondary
#A6BC43
accent
#EB3DCC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1A89

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

Preview Lab → · Contrast checker → · Palette generator →

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