#2E1667#2E1667

#2E1667 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.131 H 289.1°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#2E1667
RGBrgb(46, 22, 103)
HSLhsl(258, 65%, 25%)
HSVhsv(258, 79%, 40%)
CMYKcmyk(55.3%, 78.6%, 0%, 59.6%)
CIE-LABlab(16.17, 33.20, -43.10)
CIE-LCHlch(16.17, 54.41, 307.60°)
OKLaboklab(29.22% 0.043 -0.1239)
OKLCHoklch(29.22% 0.131 289.1)
XYZxyz(3.8611, 2.1338, 13.0377)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1667 #4F6716
analogous
#162767 #2E1667 #571667
triadic
#2E1667 #672E16 #16672E
tetradic
#2E1667 #671627 #4F6716 #166757
square
#2E1667 #671627 #4F6716 #166757
split-complementary
#2E1667 #675716 #276716
monochromatic
#0B0519 #170B35 #2E1667 #452199 #5B2CCC

Accessibility & contrast

On white

14.72
#2E1667 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1667
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1667#FFFFFF#000000##FFFFFF
##2E16671.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#192C3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e1667;
/* rgb */ color: rgb(46, 22, 103);
/* oklch */ color: oklch(29.2% 0.131 289.1);
Tailwind
colors: {
  custom: {
    50: '#6e5693',
    500: '#2e1667',
    950: '#000000',
  },
}
SCSS
$custom: #2e1667;
$custom-light: #6e5693;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1667",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 103
  },
  "hsl": {
    "h": 257.778,
    "s": 64.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29218,
    "c": 0.13114,
    "h": 289.1
  },
  "luminance": 0.02134
}

Semantic roles & 50–950 ramp

primary
#2E1667
secondary
#809E3B
accent
#E840B6
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1667

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

Preview Lab → · Contrast checker → · Palette generator →

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