#2E1693#2E1693

#2E1693 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.184 H 279.0°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#2E1693
RGBrgb(46, 22, 147)
HSLhsl(252, 74%, 33%)
HSVhsv(252, 85%, 58%)
CMYKcmyk(68.7%, 85%, 0%, 42.4%)
CIE-LABlab(21.06, 46.59, -63.10)
CIE-LCHlch(21.06, 78.43, 306.44°)
OKLaboklab(34.06% 0.0288 -0.1822)
OKLCHoklch(34.06% 0.184 279)
XYZxyz(6.6784, 3.2607, 27.8755)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1693 #7B9316
analogous
#163C93 #2E1693 #6C1693
triadic
#2E1693 #932E16 #16932E
tetradic
#2E1693 #93163C #7B9316 #16936C
square
#2E1693 #93163C #7B9316 #16936C
split-complementary
#2E1693 #936C16 #3C9316
monochromatic
#0D0629 #1D0E5E #2E1693 #3F1EC8 #6041E3

Accessibility & contrast

On white

12.71
#2E1693 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2E1693 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1693
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1693#FFFFFF#000000##FFFFFF
##2E16931.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003796
Deuteranopia (green-blind)
#002E91
Tritanopia (blue-blind)
#003E57
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e1693;
/* rgb */ color: rgb(46, 22, 147);
/* oklch */ color: oklch(34.1% 0.184 279.0);
Tailwind
colors: {
  custom: {
    50: '#7759b4',
    500: '#2e1693',
    950: '#000000',
  },
}
SCSS
$custom: #2e1693;
$custom-light: #7759b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1693",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 147
  },
  "hsl": {
    "h": 251.52,
    "s": 73.964,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34061,
    "c": 0.18446,
    "h": 279
  },
  "luminance": 0.03261
}

Semantic roles & 50–950 ramp

primary
#2E1693
secondary
#AAC342
accent
#F137CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1693

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

Preview Lab → · Contrast checker → · Palette generator →

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