#2E1D4E#2E1D4E

#2E1D4E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.087 H 296.4°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#2E1D4E
RGBrgb(46, 29, 78)
HSLhsl(261, 46%, 21%)
HSVhsv(261, 63%, 31%)
CMYKcmyk(41%, 62.8%, 0%, 69.4%)
CIE-LABlab(15.54, 21.03, -27.39)
CIE-LCHlch(15.54, 34.53, 307.52°)
OKLaboklab(28.07% 0.0386 -0.0777)
OKLCHoklch(28.07% 0.087 296.4)
XYZxyz(2.9409, 2.0096, 7.4392)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D4E #3D4E1D
analogous
#1D244E #2E1D4E #461D4E
triadic
#2E1D4E #4E2E1D #1D4E2E
tetradic
#2E1D4E #4E1D24 #3D4E1D #1D4E46
square
#2E1D4E #4E1D24 #3D4E1D #1D4E46
split-complementary
#2E1D4E #4E461D #244E1D
monochromatic
#0D0816 #140C21 #2E1D4E #482E7B #633EA7

Accessibility & contrast

On white

14.98
#2E1D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2E1D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D4E
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D4E#FFFFFF#000000##FFFFFF
##2E1D4E1.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052750
Deuteranopia (green-blind)
#0B264D
Tritanopia (blue-blind)
#262732
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e1d4e;
/* rgb */ color: rgb(46, 29, 78);
/* oklch */ color: oklch(28.1% 0.087 296.4);
Tailwind
colors: {
  custom: {
    50: '#695980',
    500: '#2e1d4e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d4e;
$custom-light: #695980;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d4e",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 78
  },
  "hsl": {
    "h": 260.816,
    "s": 45.794,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28072,
    "c": 0.08678,
    "h": 296.4
  },
  "luminance": 0.0201
}

Semantic roles & 50–950 ramp

primary
#2E1D4E
secondary
#6D8344
accent
#D552A8
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2E1D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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