#2E1167#2E1167

#2E1167 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.137 H 290.2°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#2E1167
RGBrgb(46, 17, 103)
HSLhsl(260, 72%, 24%)
HSVhsv(260, 83%, 40%)
CMYKcmyk(55.3%, 83.5%, 0%, 59.6%)
CIE-LABlab(15.28, 35.76, -44.57)
CIE-LCHlch(15.28, 57.14, 308.74°)
OKLaboklab(28.59% 0.0472 -0.1281)
OKLCHoklch(28.59% 0.137 290.2)
XYZxyz(3.7746, 1.9608, 13.0089)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1167 #4A6711
analogous
#111F67 #2E1167 #591167
triadic
#2E1167 #672E11 #11672E
tetradic
#2E1167 #67111F #4A6711 #116759
square
#2E1167 #67111F #4A6711 #116759
split-complementary
#2E1167 #675911 #1F6711
monochromatic
#0C041A #170832 #2E1167 #451A9C #5D22D0

Accessibility & contrast

On white

15.08
#2E1167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2E1167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1167
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1167#FFFFFF#000000##FFFFFF
##2E11671.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002869
Deuteranopia (green-blind)
#002465
Tritanopia (blue-blind)
#192A3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e1167;
/* rgb */ color: rgb(46, 17, 103);
/* oklch */ color: oklch(28.6% 0.137 290.2);
Tailwind
colors: {
  custom: {
    50: '#6e5393',
    500: '#2e1167',
    950: '#000000',
  },
}
SCSS
$custom: #2e1167;
$custom-light: #6e5393;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1167",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 260.233,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28593,
    "c": 0.13654,
    "h": 290.2
  },
  "luminance": 0.01961
}

Semantic roles & 50–950 ramp

primary
#2E1167
secondary
#7B9F35
accent
#EE39B1
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1167

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

Preview Lab → · Contrast checker → · Palette generator →

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