#2E1686#2E1686

#2E1686 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.169 H 281.3°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#2E1686
RGBrgb(46, 22, 134)
HSLhsl(253, 72%, 31%)
HSVhsv(253, 84%, 53%)
CMYKcmyk(65.7%, 83.6%, 0%, 47.5%)
CIE-LABlab(19.54, 42.70, -57.50)
CIE-LCHlch(19.54, 71.62, 306.60°)
OKLaboklab(32.57% 0.0332 -0.1659)
OKLCHoklch(32.57% 0.169 281.3)
XYZxyz(5.7153, 2.8755, 22.8035)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1686 #6E8616
analogous
#163686 #2E1686 #661686
triadic
#2E1686 #862E16 #16862E
tetradic
#2E1686 #861636 #6E8616 #168666
square
#2E1686 #861636 #6E8616 #168666
split-complementary
#2E1686 #866616 #368616
monochromatic
#0A051D #1C0D51 #2E1686 #401FBB #5C38DE

Accessibility & contrast

On white

13.33
#2E1686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1686
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1686#FFFFFF#000000##FFFFFF
##2E16861.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1686;
/* rgb */ color: rgb(46, 22, 134);
/* oklch */ color: oklch(32.6% 0.169 281.3);
Tailwind
colors: {
  custom: {
    50: '#7458aa',
    500: '#2e1686',
    950: '#000000',
  },
}
SCSS
$custom: #2e1686;
$custom-light: #7458aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1686",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 252.857,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32569,
    "c": 0.16921,
    "h": 281.3
  },
  "luminance": 0.02876
}

Semantic roles & 50–950 ramp

primary
#2E1686
secondary
#9FBA3E
accent
#EF39C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2E1686

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

Preview Lab → · Contrast checker → · Palette generator →

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