#2E1788#2E1788

#2E1788 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.171 H 280.8°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#2E1788
RGBrgb(46, 23, 136)
HSLhsl(252, 71%, 31%)
HSVhsv(252, 83%, 53%)
CMYKcmyk(66.2%, 83.1%, 0%, 46.7%)
CIE-LABlab(19.93, 42.84, -58.11)
CIE-LCHlch(19.93, 72.20, 306.40°)
OKLaboklab(32.91% 0.032 -0.1677)
OKLCHoklch(32.91% 0.171 280.8)
XYZxyz(5.8756, 2.9708, 23.5516)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1788 #718817
analogous
#173888 #2E1788 #661788
triadic
#2E1788 #882E17 #17882E
tetradic
#2E1788 #881738 #718817 #178866
square
#2E1788 #881738 #718817 #178866
split-complementary
#2E1788 #886617 #388817
monochromatic
#0B051F #1C0E54 #2E1788 #4020BC #5D3BDE

Accessibility & contrast

On white

13.17
#2E1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2E1788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1788
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1788#FFFFFF#000000##FFFFFF
##2E17881.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1788;
/* rgb */ color: rgb(46, 23, 136);
/* oklch */ color: oklch(32.9% 0.171 280.8);
Tailwind
colors: {
  custom: {
    50: '#7459ac',
    500: '#2e1788',
    950: '#000000',
  },
}
SCSS
$custom: #2e1788;
$custom-light: #7459ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1788",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 252.212,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32905,
    "c": 0.17075,
    "h": 280.8
  },
  "luminance": 0.02971
}

Semantic roles & 50–950 ramp

primary
#2E1788
secondary
#A2BC3F
accent
#EE3AC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1788

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

Preview Lab → · Contrast checker → · Palette generator →

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