#2E1C88#2E1C88

#2E1C88 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.166 H 280.1°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#2E1C88
RGBrgb(46, 28, 136)
HSLhsl(250, 66%, 32%)
HSVhsv(250, 79%, 53%)
CMYKcmyk(66.2%, 79.4%, 0%, 46.7%)
CIE-LABlab(20.78, 40.36, -56.70)
CIE-LCHlch(20.78, 69.60, 305.45°)
OKLaboklab(33.5% 0.0292 -0.1637)
OKLCHoklch(33.5% 0.166 280.1)
XYZxyz(5.9845, 3.1885, 23.5878)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1C88 #76881C
analogous
#1C4088 #2E1C88 #641C88
triadic
#2E1C88 #882E1C #1C882E
tetradic
#2E1C88 #881C40 #76881C #1C8864
square
#2E1C88 #881C40 #76881C #1C8864
split-complementary
#2E1C88 #88641C #40881C
monochromatic
#0C0722 #1D1255 #2E1C88 #3F26BB #5E46D9

Accessibility & contrast

On white

12.82
#2E1C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2E1C88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1C88
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1C88#FFFFFF#000000##FFFFFF
##2E1C881.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e1c88;
/* rgb */ color: rgb(46, 28, 136);
/* oklch */ color: oklch(33.5% 0.166 280.1);
Tailwind
colors: {
  custom: {
    50: '#745bac',
    500: '#2e1c88',
    950: '#000000',
  },
}
SCSS
$custom: #2e1c88;
$custom-light: #745bac;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1c88",
  "rgb": {
    "r": 46,
    "g": 28,
    "b": 136
  },
  "hsl": {
    "h": 250,
    "s": 65.854,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33501,
    "c": 0.16625,
    "h": 280.1
  },
  "luminance": 0.03189
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E1C88

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

Preview Lab → · Contrast checker → · Palette generator →

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