#2E1589#2E1589

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

Color values

HEX#2E1589
RGBrgb(46, 21, 137)
HSLhsl(253, 73%, 31%)
HSVhsv(253, 85%, 54%)
CMYKcmyk(66.4%, 84.7%, 0%, 46.3%)
CIE-LABlab(19.73, 44.05, -59.06)
CIE-LCHlch(19.73, 73.68, 306.72°)
OKLaboklab(32.81% 0.0327 -0.1705)
OKLCHoklch(32.81% 0.174 280.8)
XYZxyz(5.9088, 2.9229, 23.9148)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1589 #708915
analogous
#153689 #2E1589 #681589
triadic
#2E1589 #892E15 #15892E
tetradic
#2E1589 #891536 #708915 #158968
square
#2E1589 #891536 #708915 #158968
split-complementary
#2E1589 #896815 #368915
monochromatic
#0A051F #1C0D54 #2E1589 #401DBE #5C38E0

Accessibility & contrast

On white

13.25
#2E1589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1589
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1589#FFFFFF#000000##FFFFFF
##2E15891.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1589;
/* rgb */ color: rgb(46, 21, 137);
/* oklch */ color: oklch(32.8% 0.174 280.8);
Tailwind
colors: {
  custom: {
    50: '#7558ad',
    500: '#2e1589',
    950: '#000000',
  },
}
SCSS
$custom: #2e1589;
$custom-light: #7558ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1589",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 252.931,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32805,
    "c": 0.17356,
    "h": 280.8
  },
  "luminance": 0.02923
}

Semantic roles & 50–950 ramp

primary
#2E1589
secondary
#A1BD3D
accent
#F038C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #2E1589

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

Preview Lab → · Contrast checker → · Palette generator →

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