#2E1786#2E1786

#2E1786 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.168 H 281.2°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#2E1786
RGBrgb(46, 23, 134)
HSLhsl(252, 71%, 31%)
HSVhsv(252, 83%, 53%)
CMYKcmyk(65.7%, 82.8%, 0%, 47.5%)
CIE-LABlab(19.70, 42.24, -57.23)
CIE-LCHlch(19.70, 71.13, 306.43°)
OKLaboklab(32.68% 0.0327 -0.1652)
OKLCHoklch(32.68% 0.168 281.2)
XYZxyz(5.7348, 2.9144, 22.8100)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1786 #6F8617
analogous
#173886 #2E1786 #651786
triadic
#2E1786 #862E17 #17862E
tetradic
#2E1786 #861738 #6F8617 #178665
square
#2E1786 #861738 #6F8617 #178665
split-complementary
#2E1786 #866517 #388617
monochromatic
#0A051E #1C0E52 #2E1786 #4020BA #5C3ADD

Accessibility & contrast

On white

13.27
#2E1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2E1786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1786
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1786#FFFFFF#000000##FFFFFF
##2E17861.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1786;
/* rgb */ color: rgb(46, 23, 134);
/* oklch */ color: oklch(32.7% 0.168 281.2);
Tailwind
colors: {
  custom: {
    50: '#7458aa',
    500: '#2e1786',
    950: '#000000',
  },
}
SCSS
$custom: #2e1786;
$custom-light: #7458aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1786",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 252.432,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3268,
    "c": 0.16836,
    "h": 281.2
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

primary
#2E1786
secondary
#A0BA3F
accent
#ED3AC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1786

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

Preview Lab → · Contrast checker → · Palette generator →

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