#2E1489#2E1489

#2E1489 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.174 H 281.0°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#2E1489
RGBrgb(46, 20, 137)
HSLhsl(253, 75%, 31%)
HSVhsv(253, 85%, 54%)
CMYKcmyk(66.4%, 85.4%, 0%, 46.3%)
CIE-LABlab(19.58, 44.49, -59.31)
CIE-LCHlch(19.58, 74.14, 306.88°)
OKLaboklab(32.7% 0.0331 -0.1711)
OKLCHoklch(32.7% 0.174 281)
XYZxyz(5.8908, 2.8868, 23.9088)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1489 #6F8914
analogous
#143589 #2E1489 #681489
triadic
#2E1489 #892E14 #14892E
tetradic
#2E1489 #891435 #6F8914 #148968
square
#2E1489 #891435 #6F8914 #148968
split-complementary
#2E1489 #896814 #358914
monochromatic
#0A041E #1C0C54 #2E1489 #401CBE #5C36E2

Accessibility & contrast

On white

13.31
#2E1489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1489
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1489#FFFFFF#000000##FFFFFF
##2E14891.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1489;
/* rgb */ color: rgb(46, 20, 137);
/* oklch */ color: oklch(32.7% 0.174 281.0);
Tailwind
colors: {
  custom: {
    50: '#7557ad',
    500: '#2e1489',
    950: '#000000',
  },
}
SCSS
$custom: #2e1489;
$custom-light: #7557ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1489",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 137
  },
  "hsl": {
    "h": 253.333,
    "s": 74.522,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32704,
    "c": 0.17433,
    "h": 281
  },
  "luminance": 0.02887
}

Semantic roles & 50–950 ramp

primary
#2E1489
secondary
#A0BD3C
accent
#F137C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #2E1489

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

Preview Lab → · Contrast checker → · Palette generator →

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