#2E1165#2E1165

#2E1165 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.134 H 290.9°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#2E1165
RGBrgb(46, 17, 101)
HSLhsl(261, 71%, 23%)
HSVhsv(261, 83%, 40%)
CMYKcmyk(54.5%, 83.2%, 0%, 60.4%)
CIE-LABlab(15.07, 35.17, -43.60)
CIE-LCHlch(15.07, 56.02, 308.89°)
OKLaboklab(28.38% 0.0478 -0.1253)
OKLCHoklch(28.38% 0.134 290.9)
XYZxyz(3.6755, 1.9212, 12.4866)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1165 #486511
analogous
#111E65 #2E1165 #581165
triadic
#2E1165 #652E11 #11652E
tetradic
#2E1165 #65111E #486511 #116558
square
#2E1165 #65111E #486511 #116558
split-complementary
#2E1165 #655811 #1E6511
monochromatic
#0C041A #160831 #2E1165 #461A99 #5E23CE

Accessibility & contrast

On white

15.17
#2E1165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2E1165 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1165
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1165#FFFFFF#000000##FFFFFF
##2E11651.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002767
Deuteranopia (green-blind)
#002463
Tritanopia (blue-blind)
#1A293B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e1165;
/* rgb */ color: rgb(46, 17, 101);
/* oklch */ color: oklch(28.4% 0.134 290.9);
Tailwind
colors: {
  custom: {
    50: '#6e5392',
    500: '#2e1165',
    950: '#000000',
  },
}
SCSS
$custom: #2e1165;
$custom-light: #6e5392;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1165",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 260.714,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28381,
    "c": 0.13412,
    "h": 290.9
  },
  "luminance": 0.01921
}

Semantic roles & 50–950 ramp

primary
#2E1165
secondary
#799D35
accent
#EE3AB0
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2E1165

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

Preview Lab → · Contrast checker → · Palette generator →

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