#2E1166#2E1166

#2E1166 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.135 H 290.5°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#2E1166
RGBrgb(46, 17, 102)
HSLhsl(260, 71%, 23%)
HSVhsv(260, 83%, 40%)
CMYKcmyk(54.9%, 83.3%, 0%, 60%)
CIE-LABlab(15.17, 35.46, -44.09)
CIE-LCHlch(15.17, 56.58, 308.81°)
OKLaboklab(28.49% 0.0475 -0.1267)
OKLCHoklch(28.49% 0.135 290.5)
XYZxyz(3.7247, 1.9409, 12.7462)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1166 #496611
analogous
#111E66 #2E1166 #581166
triadic
#2E1166 #662E11 #11662E
tetradic
#2E1166 #66111E #496611 #116658
square
#2E1166 #66111E #496611 #116658
split-complementary
#2E1166 #665811 #1E6611
monochromatic
#0C041A #160832 #2E1166 #461A9A #5D22CF

Accessibility & contrast

On white

15.13
#2E1166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1166
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1166#FFFFFF#000000##FFFFFF
##2E11661.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002768
Deuteranopia (green-blind)
#002464
Tritanopia (blue-blind)
#1A2A3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e1166;
/* rgb */ color: rgb(46, 17, 102);
/* oklch */ color: oklch(28.5% 0.135 290.5);
Tailwind
colors: {
  custom: {
    50: '#6e5393',
    500: '#2e1166',
    950: '#000000',
  },
}
SCSS
$custom: #2e1166;
$custom-light: #6e5393;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1166",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 260.471,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28487,
    "c": 0.13534,
    "h": 290.5
  },
  "luminance": 0.01941
}

Semantic roles & 50–950 ramp

primary
#2E1166
secondary
#7A9E35
accent
#EE3AB1
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1166

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

Preview Lab → · Contrast checker → · Palette generator →

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