#2E1666#2E1666

#2E1666 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.130 H 289.5°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#2E1666
RGBrgb(46, 22, 102)
HSLhsl(258, 65%, 24%)
HSVhsv(258, 78%, 40%)
CMYKcmyk(54.9%, 78.4%, 0%, 60%)
CIE-LABlab(16.07, 32.89, -42.61)
CIE-LCHlch(16.07, 53.83, 307.66°)
OKLaboklab(29.12% 0.0433 -0.1224)
OKLCHoklch(29.12% 0.13 289.5)
XYZxyz(3.8112, 2.1138, 12.7750)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1666 #4E6616
analogous
#162666 #2E1666 #561666
triadic
#2E1666 #662E16 #16662E
tetradic
#2E1666 #661626 #4E6616 #166656
square
#2E1666 #661626 #4E6616 #166656
split-complementary
#2E1666 #665616 #266616
monochromatic
#0B0519 #170B34 #2E1666 #452198 #5B2CCB

Accessibility & contrast

On white

14.76
#2E1666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1666
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1666#FFFFFF#000000##FFFFFF
##2E16661.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#192C3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e1666;
/* rgb */ color: rgb(46, 22, 102);
/* oklch */ color: oklch(29.1% 0.130 289.5);
Tailwind
colors: {
  custom: {
    50: '#6e5692',
    500: '#2e1666',
    950: '#000000',
  },
}
SCSS
$custom: #2e1666;
$custom-light: #6e5692;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1666",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 258,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29117,
    "c": 0.12987,
    "h": 289.5
  },
  "luminance": 0.02114
}

Semantic roles & 50–950 ramp

primary
#2E1666
secondary
#7F9D3B
accent
#E840B5
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1666

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

Preview Lab → · Contrast checker → · Palette generator →

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