#2E1466#2E1466

#2E1466 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.132 H 289.9°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#2E1466
RGBrgb(46, 20, 102)
HSLhsl(259, 67%, 24%)
HSVhsv(259, 80%, 40%)
CMYKcmyk(54.9%, 80.4%, 0%, 60%)
CIE-LABlab(15.70, 33.96, -43.23)
CIE-LCHlch(15.70, 54.97, 308.15°)
OKLaboklab(28.85% 0.045 -0.1242)
OKLCHoklch(28.85% 0.132 289.9)
XYZxyz(3.7744, 2.0403, 12.7627)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1466 #4C6614
analogous
#142366 #2E1466 #571466
triadic
#2E1466 #662E14 #14662E
tetradic
#2E1466 #661423 #4C6614 #146657
square
#2E1466 #661423 #4C6614 #146657
split-complementary
#2E1466 #665714 #236614
monochromatic
#0C051A #170A33 #2E1466 #451E99 #5C28CC

Accessibility & contrast

On white

14.91
#2E1466 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2E1466 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1466
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1466#FFFFFF#000000##FFFFFF
##2E14661.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002564
Tritanopia (blue-blind)
#192B3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e1466;
/* rgb */ color: rgb(46, 20, 102);
/* oklch */ color: oklch(28.9% 0.132 289.9);
Tailwind
colors: {
  custom: {
    50: '#6e5592',
    500: '#2e1466',
    950: '#000000',
  },
}
SCSS
$custom: #2e1466;
$custom-light: #6e5592;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1466",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 102
  },
  "hsl": {
    "h": 259.024,
    "s": 67.213,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28852,
    "c": 0.13215,
    "h": 289.9
  },
  "luminance": 0.0204
}

Semantic roles & 50–950 ramp

primary
#2E1466
secondary
#7D9D39
accent
#EA3EB3
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1466

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

Preview Lab → · Contrast checker → · Palette generator →

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