#2E1580#2E1580

#2E1580 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.163 H 282.7°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#2E1580
RGBrgb(46, 21, 128)
HSLhsl(254, 72%, 29%)
HSVhsv(254, 84%, 50%)
CMYKcmyk(64.1%, 83.6%, 0%, 49.8%)
CIE-LABlab(18.69, 41.36, -55.10)
CIE-LCHlch(18.69, 68.90, 306.89°)
OKLaboklab(31.78% 0.0358 -0.1589)
OKLCHoklch(31.78% 0.163 282.7)
XYZxyz(5.2899, 2.6753, 20.6555)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1580 #678015
analogous
#153280 #2E1580 #641580
triadic
#2E1580 #802E15 #15802E
tetradic
#2E1580 #801532 #678015 #158064
square
#2E1580 #801532 #678015 #158064
split-complementary
#2E1580 #806415 #328015
monochromatic
#09041A #1B0C4B #2E1580 #411EB5 #5A32DD

Accessibility & contrast

On white

13.68
#2E1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2E1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1580
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1580#FFFFFF#000000##FFFFFF
##2E15801.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1580;
/* rgb */ color: rgb(46, 21, 128);
/* oklch */ color: oklch(31.8% 0.163 282.7);
Tailwind
colors: {
  custom: {
    50: '#7357a6',
    500: '#2e1580',
    950: '#000000',
  },
}
SCSS
$custom: #2e1580;
$custom-light: #7357a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1580",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 254.019,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31783,
    "c": 0.16291,
    "h": 282.7
  },
  "luminance": 0.02676
}

Semantic roles & 50–950 ramp

primary
#2E1580
secondary
#99B53C
accent
#EF39C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E1580

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

Preview Lab → · Contrast checker → · Palette generator →

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