#2E1A71#2E1A71

#2E1A71 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.139 H 285.3°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#2E1A71
RGBrgb(46, 26, 113)
HSLhsl(254, 63%, 27%)
HSVhsv(254, 77%, 44%)
CMYKcmyk(59.3%, 77%, 0%, 55.7%)
CIE-LABlab(17.97, 34.13, -46.68)
CIE-LCHlch(17.97, 57.83, 306.17°)
OKLaboklab(30.79% 0.0369 -0.1344)
OKLCHoklch(30.79% 0.139 285.3)
XYZxyz(4.4758, 2.5116, 15.8685)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A71 #5D711A
analogous
#1A3271 #2E1A71 #5A1A71
triadic
#2E1A71 #712E1A #1A712E
tetradic
#2E1A71 #711A32 #5D711A #1A715A
square
#2E1A71 #711A32 #5D711A #1A715A
split-complementary
#2E1A71 #715A1A #32711A
monochromatic
#0A0619 #1A0F3F #2E1A71 #4225A3 #5935D0

Accessibility & contrast

On white

13.98
#2E1A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2E1A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A71
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A71#FFFFFF#000000##FFFFFF
##2E1A711.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#0D3244
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1a71;
/* rgb */ color: rgb(46, 26, 113);
/* oklch */ color: oklch(30.8% 0.139 285.3);
Tailwind
colors: {
  custom: {
    50: '#6f599b',
    500: '#2e1a71',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a71;
$custom-light: #6f599b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a71",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 253.793,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30794,
    "c": 0.13936,
    "h": 285.3
  },
  "luminance": 0.02512
}

Semantic roles & 50–950 ramp

primary
#2E1A71
secondary
#8FA641
accent
#E642C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1A71

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

Preview Lab → · Contrast checker → · Palette generator →

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