#2E1381#2E1381

#2E1381 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.7% C 0.166 H 282.7°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#2E1381
RGBrgb(46, 19, 129)
HSLhsl(255, 74%, 29%)
HSVhsv(255, 85%, 51%)
CMYKcmyk(64.3%, 85.3%, 0%, 49.4%)
CIE-LABlab(18.50, 42.56, -56.05)
CIE-LCHlch(18.50, 70.38, 307.21°)
OKLaboklab(31.69% 0.0365 -0.1617)
OKLCHoklch(31.69% 0.166 282.7)
XYZxyz(5.3208, 2.6312, 20.9921)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1381 #668113
analogous
#132F81 #2E1381 #651381
triadic
#2E1381 #812E13 #13812E
tetradic
#2E1381 #81132F #668113 #138165
square
#2E1381 #81132F #668113 #138165
split-complementary
#2E1381 #816513 #2F8113
monochromatic
#0A041B #1B0B4C #2E1381 #411BB6 #5A2EE0

Accessibility & contrast

On white

13.76
#2E1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2E1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1381
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1381#FFFFFF#000000##FFFFFF
##2E13811.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1381;
/* rgb */ color: rgb(46, 19, 129);
/* oklch */ color: oklch(31.7% 0.166 282.7);
Tailwind
colors: {
  custom: {
    50: '#7356a7',
    500: '#2e1381',
    950: '#000000',
  },
}
SCSS
$custom: #2e1381;
$custom-light: #7356a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1381",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 254.727,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31685,
    "c": 0.16574,
    "h": 282.7
  },
  "luminance": 0.02632
}

Semantic roles & 50–950 ramp

primary
#2E1381
secondary
#98B63A
accent
#F137C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2E1381

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

Preview Lab → · Contrast checker → · Palette generator →

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