#2E1071#2E1071

#2E1071 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.6% C 0.149 H 287.2°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#2E1071
RGBrgb(46, 16, 113)
HSLhsl(259, 75%, 25%)
HSVhsv(259, 86%, 44%)
CMYKcmyk(59.3%, 85.8%, 0%, 55.7%)
CIE-LABlab(16.22, 39.16, -49.56)
CIE-LCHlch(16.22, 63.16, 308.31°)
OKLaboklab(29.57% 0.0442 -0.1427)
OKLCHoklch(29.57% 0.149 287.2)
XYZxyz(4.2918, 2.1434, 15.8072)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1071 #537110
analogous
#102271 #2E1071 #5F1071
triadic
#2E1071 #712E10 #10712E
tetradic
#2E1071 #711022 #537110 #10715F
square
#2E1071 #711022 #537110 #10715F
split-complementary
#2E1071 #715F10 #227110
monochromatic
#0B041B #18083B #2E1071 #4418A7 #5A1FDC

Accessibility & contrast

On white

14.70
#2E1071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2E1071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1071
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1071#FFFFFF#000000##FFFFFF
##2E10711.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#0E2E42
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e1071;
/* rgb */ color: rgb(46, 16, 113);
/* oklch */ color: oklch(29.6% 0.149 287.2);
Tailwind
colors: {
  custom: {
    50: '#70549b',
    500: '#2e1071',
    950: '#000000',
  },
}
SCSS
$custom: #2e1071;
$custom-light: #70549b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1071",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 258.557,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29574,
    "c": 0.14938,
    "h": 287.2
  },
  "luminance": 0.02144
}

Semantic roles & 50–950 ramp

primary
#2E1071
secondary
#85A934
accent
#F236B8
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1071

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

Preview Lab → · Contrast checker → · Palette generator →

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