#2E1665#2E1665

#2E1665 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.129 H 289.8°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#2E1665
RGBrgb(46, 22, 101)
HSLhsl(258, 64%, 24%)
HSVhsv(258, 78%, 40%)
CMYKcmyk(54.5%, 78.2%, 0%, 60.4%)
CIE-LABlab(15.97, 32.58, -42.12)
CIE-LCHlch(15.97, 53.25, 307.72°)
OKLaboklab(29.02% 0.0436 -0.121)
OKLCHoklch(29.02% 0.129 289.8)
XYZxyz(3.7619, 2.0941, 12.5154)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1665 #4D6516
analogous
#162665 #2E1665 #561665
triadic
#2E1665 #652E16 #16652E
tetradic
#2E1665 #651626 #4D6516 #166556
square
#2E1665 #651626 #4D6516 #166556
split-complementary
#2E1665 #655616 #266516
monochromatic
#0B0519 #170B33 #2E1665 #452197 #5C2CCA

Accessibility & contrast

On white

14.80
#2E1665 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2E1665 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1665
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1665#FFFFFF#000000##FFFFFF
##2E16651.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#1A2B3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e1665;
/* rgb */ color: rgb(46, 22, 101);
/* oklch */ color: oklch(29.0% 0.129 289.8);
Tailwind
colors: {
  custom: {
    50: '#6e5692',
    500: '#2e1665',
    950: '#000000',
  },
}
SCSS
$custom: #2e1665;
$custom-light: #6e5692;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1665",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 101
  },
  "hsl": {
    "h": 258.228,
    "s": 64.228,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29016,
    "c": 0.12859,
    "h": 289.8
  },
  "luminance": 0.02094
}

Semantic roles & 50–950 ramp

primary
#2E1665
secondary
#7E9C3B
accent
#E741B5
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1665

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

Preview Lab → · Contrast checker → · Palette generator →

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