#2E1671#2E1671

#2E1671 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.144 H 286.2°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#2E1671
RGBrgb(46, 22, 113)
HSLhsl(256, 67%, 26%)
HSVhsv(256, 81%, 44%)
CMYKcmyk(59.3%, 80.5%, 0%, 55.7%)
CIE-LABlab(17.21, 36.29, -47.93)
CIE-LCHlch(17.21, 60.12, 307.13°)
OKLaboklab(30.26% 0.0401 -0.138)
OKLCHoklch(30.26% 0.144 286.2)
XYZxyz(4.3934, 2.3467, 15.8410)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1671 #597116
analogous
#162C71 #2E1671 #5C1671
triadic
#2E1671 #712E16 #16712E
tetradic
#2E1671 #71162C #597116 #16715C
square
#2E1671 #71162C #597116 #16715C
split-complementary
#2E1671 #715C16 #2C7116
monochromatic
#0A051A #190C3E #2E1671 #4320A4 #582CD6

Accessibility & contrast

On white

14.29
#2E1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2E1671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1671
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1671#FFFFFF#000000##FFFFFF
##2E16711.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#0D3043
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1671;
/* rgb */ color: rgb(46, 22, 113);
/* oklch */ color: oklch(30.3% 0.144 286.2);
Tailwind
colors: {
  custom: {
    50: '#70579b',
    500: '#2e1671',
    950: '#000000',
  },
}
SCSS
$custom: #2e1671;
$custom-light: #70579b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1671",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 255.824,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3026,
    "c": 0.14371,
    "h": 286.2
  },
  "luminance": 0.02347
}

Semantic roles & 50–950 ramp

primary
#2E1671
secondary
#8BA73C
accent
#EA3EBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1671

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

Preview Lab → · Contrast checker → · Palette generator →

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