#2E1684#2E1684

#2E1684 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.167 H 281.7°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#2E1684
RGBrgb(46, 22, 132)
HSLhsl(253, 71%, 30%)
HSVhsv(253, 83%, 52%)
CMYKcmyk(65.2%, 83.3%, 0%, 48.2%)
CIE-LABlab(19.31, 42.10, -56.62)
CIE-LCHlch(19.31, 70.55, 306.64°)
OKLaboklab(32.34% 0.0339 -0.1633)
OKLCHoklch(32.34% 0.167 281.7)
XYZxyz(5.5772, 2.8202, 22.0758)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1684 #6C8416
analogous
#163584 #2E1684 #651684
triadic
#2E1684 #842E16 #16842E
tetradic
#2E1684 #841635 #6C8416 #168465
square
#2E1684 #841635 #6C8416 #168465
split-complementary
#2E1684 #846516 #358416
monochromatic
#09051B #1C0D50 #2E1684 #401FB8 #5B37DE

Accessibility & contrast

On white

13.43
#2E1684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2E1684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1684
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1684#FFFFFF#000000##FFFFFF
##2E16841.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1684;
/* rgb */ color: rgb(46, 22, 132);
/* oklch */ color: oklch(32.3% 0.167 281.7);
Tailwind
colors: {
  custom: {
    50: '#7458a9',
    500: '#2e1684',
    950: '#000000',
  },
}
SCSS
$custom: #2e1684;
$custom-light: #7458a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1684",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 253.091,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32343,
    "c": 0.16682,
    "h": 281.7
  },
  "luminance": 0.02821
}

Semantic roles & 50–950 ramp

primary
#2E1684
secondary
#9EB83D
accent
#EE3AC7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2E1684

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

Preview Lab → · Contrast checker → · Palette generator →

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