#2E1A87#2E1A87

#2E1A87 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.167 H 280.6°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#2E1A87
RGBrgb(46, 26, 135)
HSLhsl(251, 68%, 32%)
HSVhsv(251, 81%, 53%)
CMYKcmyk(65.9%, 80.7%, 0%, 47.1%)
CIE-LABlab(20.32, 41.08, -56.84)
CIE-LCHlch(20.32, 70.13, 305.86°)
OKLaboklab(33.14% 0.0307 -0.1641)
OKLCHoklch(33.14% 0.167 280.6)
XYZxyz(5.8679, 3.0684, 23.2000)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A87 #73871A
analogous
#1A3D87 #2E1A87 #651A87
triadic
#2E1A87 #872E1A #1A872E
tetradic
#2E1A87 #871A3D #73871A #1A8765
square
#2E1A87 #871A3D #73871A #1A8765
split-complementary
#2E1A87 #87651A #3D871A
monochromatic
#0B0620 #1D1054 #2E1A87 #3F24BA #5D41DA

Accessibility & contrast

On white

13.01
#2E1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2E1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A87
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A87#FFFFFF#000000##FFFFFF
##2E1A871.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1a87;
/* rgb */ color: rgb(46, 26, 135);
/* oklch */ color: oklch(33.1% 0.167 280.6);
Tailwind
colors: {
  custom: {
    50: '#745aab',
    500: '#2e1a87',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a87;
$custom-light: #745aab;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a87",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 251.009,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33142,
    "c": 0.1669,
    "h": 280.6
  },
  "luminance": 0.03069
}

Semantic roles & 50–950 ramp

primary
#2E1A87
secondary
#A4BA42
accent
#EB3DCB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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