#2E1689#2E1689

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

Color values

HEX#2E1689
RGBrgb(46, 22, 137)
HSLhsl(253, 72%, 31%)
HSVhsv(253, 84%, 54%)
CMYKcmyk(66.4%, 83.9%, 0%, 46.3%)
CIE-LABlab(19.88, 43.61, -58.81)
CIE-LCHlch(19.88, 73.22, 306.56°)
OKLaboklab(32.91% 0.0322 -0.1697)
OKLCHoklch(32.91% 0.173 280.7)
XYZxyz(5.9276, 2.9603, 23.9211)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1689 #718916
analogous
#163789 #2E1689 #671689
triadic
#2E1689 #892E16 #16892E
tetradic
#2E1689 #891637 #718916 #168967
square
#2E1689 #891637 #718916 #168967
split-complementary
#2E1689 #896716 #378916
monochromatic
#0B0520 #1C0E54 #2E1689 #401EBE #5D3ADF

Accessibility & contrast

On white

13.19
#2E1689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2E1689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1689
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1689#FFFFFF#000000##FFFFFF
##2E16891.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1689;
/* rgb */ color: rgb(46, 22, 137);
/* oklch */ color: oklch(32.9% 0.173 280.7);
Tailwind
colors: {
  custom: {
    50: '#7558ad',
    500: '#2e1689',
    950: '#000000',
  },
}
SCSS
$custom: #2e1689;
$custom-light: #7558ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1689",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 252.522,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3291,
    "c": 0.17276,
    "h": 280.7
  },
  "luminance": 0.02961
}

Semantic roles & 50–950 ramp

primary
#2E1689
secondary
#A2BD3E
accent
#EF39C9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1689

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

Preview Lab → · Contrast checker → · Palette generator →

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