#2E1986#2E1986

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

Color values

HEX#2E1986
RGBrgb(46, 25, 134)
HSLhsl(252, 69%, 31%)
HSVhsv(252, 81%, 53%)
CMYKcmyk(65.7%, 81.3%, 0%, 47.5%)
CIE-LABlab(20.03, 41.27, -56.68)
CIE-LCHlch(20.03, 70.12, 306.06°)
OKLaboklab(32.91% 0.0316 -0.1636)
OKLCHoklch(32.91% 0.167 280.9)
XYZxyz(5.7761, 2.9969, 22.8237)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1986 #718619
analogous
#193A86 #2E1986 #641986
triadic
#2E1986 #862E19 #19862E
tetradic
#2E1986 #86193A #718619 #198664
square
#2E1986 #86193A #718619 #198664
split-complementary
#2E1986 #866419 #3A8619
monochromatic
#0B061F #1C0F52 #2E1986 #4023BA #5D3EDB

Accessibility & contrast

On white

13.13
#2E1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2E1986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1986
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1986#FFFFFF#000000##FFFFFF
##2E19861.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1986;
/* rgb */ color: rgb(46, 25, 134);
/* oklch */ color: oklch(32.9% 0.167 280.9);
Tailwind
colors: {
  custom: {
    50: '#745aaa',
    500: '#2e1986',
    950: '#000000',
  },
}
SCSS
$custom: #2e1986;
$custom-light: #745aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1986",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 251.56,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32911,
    "c": 0.1666,
    "h": 280.9
  },
  "luminance": 0.02997
}

Semantic roles & 50–950 ramp

primary
#2E1986
secondary
#A2BA41
accent
#EB3CCA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1986

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

Preview Lab → · Contrast checker → · Palette generator →

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