#2E1C87#2E1C87

#2E1C87 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.165 H 280.3°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#2E1C87
RGBrgb(46, 28, 135)
HSLhsl(250, 66%, 32%)
HSVhsv(250, 79%, 53%)
CMYKcmyk(65.9%, 79.3%, 0%, 47.1%)
CIE-LABlab(20.67, 40.05, -56.25)
CIE-LCHlch(20.67, 69.05, 305.45°)
OKLaboklab(33.39% 0.0295 -0.1624)
OKLCHoklch(33.39% 0.165 280.3)
XYZxyz(5.9138, 3.1602, 23.2153)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1C87 #75871C
analogous
#1C4087 #2E1C87 #631C87
triadic
#2E1C87 #872E1C #1C872E
tetradic
#2E1C87 #871C40 #75871C #1C8763
square
#2E1C87 #871C40 #75871C #1C8763
split-complementary
#2E1C87 #87631C #40871C
monochromatic
#0B0722 #1D1154 #2E1C87 #3F27BA #5E45D8

Accessibility & contrast

On white

12.87
#2E1C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1C87
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1C87#FFFFFF#000000##FFFFFF
##2E1C871.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e1c87;
/* rgb */ color: rgb(46, 28, 135);
/* oklch */ color: oklch(33.4% 0.165 280.3);
Tailwind
colors: {
  custom: {
    50: '#745bab',
    500: '#2e1c87',
    950: '#000000',
  },
}
SCSS
$custom: #2e1c87;
$custom-light: #745bab;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1c87",
  "rgb": {
    "r": 46,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 250.093,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33392,
    "c": 0.16501,
    "h": 280.3
  },
  "luminance": 0.03161
}

Semantic roles & 50–950 ramp

primary
#2E1C87
secondary
#A6BA45
accent
#E93FCC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1C87

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

Preview Lab → · Contrast checker → · Palette generator →

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