#2E1681#2E1681

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

Color values

HEX#2E1681
RGBrgb(46, 22, 129)
HSLhsl(253, 71%, 30%)
HSVhsv(253, 83%, 51%)
CMYKcmyk(64.3%, 82.9%, 0%, 49.4%)
CIE-LABlab(18.97, 41.19, -55.28)
CIE-LCHlch(18.97, 68.94, 306.69°)
OKLaboklab(32.01% 0.0349 -0.1595)
OKLCHoklch(32.01% 0.163 282.3)
XYZxyz(5.3748, 2.7393, 21.0101)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1681 #698116
analogous
#163481 #2E1681 #641681
triadic
#2E1681 #812E16 #16812E
tetradic
#2E1681 #811634 #698116 #168164
square
#2E1681 #811634 #698116 #168164
split-complementary
#2E1681 #816416 #348116
monochromatic
#09041A #1B0D4D #2E1681 #411FB5 #5A35DD

Accessibility & contrast

On white

13.57
#2E1681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2E1681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1681
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1681#FFFFFF#000000##FFFFFF
##2E16811.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e1681;
/* rgb */ color: rgb(46, 22, 129);
/* oklch */ color: oklch(32.0% 0.163 282.3);
Tailwind
colors: {
  custom: {
    50: '#7358a7',
    500: '#2e1681',
    950: '#000000',
  },
}
SCSS
$custom: #2e1681;
$custom-light: #7358a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1681",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 253.458,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32007,
    "c": 0.16324,
    "h": 282.3
  },
  "luminance": 0.0274
}

Semantic roles & 50–950 ramp

primary
#2E1681
secondary
#9BB63D
accent
#EE3AC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2E1681

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

Preview Lab → · Contrast checker → · Palette generator →

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