#2E1171#2E1171

#2E1171 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.149 H 287.1°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#2E1171
RGBrgb(46, 17, 113)
HSLhsl(258, 74%, 25%)
HSVhsv(258, 85%, 44%)
CMYKcmyk(59.3%, 85%, 0%, 55.7%)
CIE-LABlab(16.37, 38.71, -49.31)
CIE-LCHlch(16.37, 62.69, 308.14°)
OKLaboklab(29.68% 0.0436 -0.142)
OKLCHoklch(29.68% 0.149 287.1)
XYZxyz(4.3069, 2.1738, 15.8122)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1171 #547111
analogous
#112471 #2E1171 #5E1171
triadic
#2E1171 #712E11 #11712E
tetradic
#2E1171 #711124 #547111 #11715E
square
#2E1171 #711124 #547111 #11715E
split-complementary
#2E1171 #715E11 #247111
monochromatic
#0B041B #18093C #2E1171 #4419A6 #5921DB

Accessibility & contrast

On white

14.64
#2E1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1171
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1171#FFFFFF#000000##FFFFFF
##2E11711.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1171;
/* rgb */ color: rgb(46, 17, 113);
/* oklch */ color: oklch(29.7% 0.149 287.1);
Tailwind
colors: {
  custom: {
    50: '#70549b',
    500: '#2e1171',
    950: '#000000',
  },
}
SCSS
$custom: #2e1171;
$custom-light: #70549b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1171",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 258.125,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29679,
    "c": 0.14851,
    "h": 287.1
  },
  "luminance": 0.02174
}

Semantic roles & 50–950 ramp

primary
#2E1171
secondary
#86A836
accent
#F137B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1171

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

Preview Lab → · Contrast checker → · Palette generator →

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