#2E1164#2E1164

#2E1164 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.133 H 291.3°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#2E1164
RGBrgb(46, 17, 100)
HSLhsl(261, 71%, 23%)
HSVhsv(261, 83%, 39%)
CMYKcmyk(54%, 83%, 0%, 60.8%)
CIE-LABlab(14.96, 34.87, -43.11)
CIE-LCHlch(14.96, 55.45, 308.97°)
OKLaboklab(28.28% 0.0482 -0.1239)
OKLCHoklch(28.28% 0.133 291.3)
XYZxyz(3.6268, 1.9017, 12.2301)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1164 #476411
analogous
#111D64 #2E1164 #571164
triadic
#2E1164 #642E11 #11642E
tetradic
#2E1164 #64111D #476411 #116457
square
#2E1164 #64111D #476411 #116457
split-complementary
#2E1164 #645711 #1D6411
monochromatic
#0C041A #160830 #2E1164 #461A98 #5E23CD

Accessibility & contrast

On white

15.21
#2E1164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1164
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1164#FFFFFF#000000##FFFFFF
##2E11641.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002766
Deuteranopia (green-blind)
#002462
Tritanopia (blue-blind)
#1B293A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e1164;
/* rgb */ color: rgb(46, 17, 100);
/* oklch */ color: oklch(28.3% 0.133 291.3);
Tailwind
colors: {
  custom: {
    50: '#6e5391',
    500: '#2e1164',
    950: '#000000',
  },
}
SCSS
$custom: #2e1164;
$custom-light: #6e5391;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1164",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 100
  },
  "hsl": {
    "h": 260.964,
    "s": 70.94,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28276,
    "c": 0.13291,
    "h": 291.3
  },
  "luminance": 0.01902
}

Semantic roles & 50–950 ramp

primary
#2E1164
secondary
#789C35
accent
#EE3AAF
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2E1164

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

Preview Lab → · Contrast checker → · Palette generator →

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