#2E0D4F#2E0D4F

#2E0D4F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.112 H 301.4°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#2E0D4F
RGBrgb(46, 13, 79)
HSLhsl(270, 72%, 18%)
HSVhsv(270, 84%, 31%)
CMYKcmyk(41.8%, 83.5%, 0%, 69%)
CIE-LABlab(12.18, 30.76, -33.52)
CIE-LCHlch(12.18, 45.49, 312.55°)
OKLaboklab(25.68% 0.0585 -0.0957)
OKLCHoklch(25.68% 0.112 301.4)
XYZxyz(2.6816, 1.4332, 7.5310)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0D4F #2E4F0D
analogous
#0D0D4F #2E0D4F #4F0D4F
triadic
#2E0D4F #4F2E0D #0D4F2E
tetradic
#2E0D4F #4F0D0D #2E4F0D #0D4F4F
square
#2E0D4F #4F0D0D #2E4F0D #0D4F4F
split-complementary
#2E0D4F #4F4F0D #0D4F0D
monochromatic
#0F041A #0F041A #2E0D4F #4D1684 #6B1EB8

Accessibility & contrast

On white

16.32
#2E0D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2E0D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0D4F
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0D4F#FFFFFF#000000##FFFFFF
##2E0D4F1.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#271E2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e0d4f;
/* rgb */ color: rgb(46, 13, 79);
/* oklch */ color: oklch(25.7% 0.112 301.4);
Tailwind
colors: {
  custom: {
    50: '#6b5081',
    500: '#2e0d4f',
    950: '#000000',
  },
}
SCSS
$custom: #2e0d4f;
$custom-light: #6b5081;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0d4f",
  "rgb": {
    "r": 46,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 270,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25682,
    "c": 0.11214,
    "h": 301.4
  },
  "luminance": 0.01433
}

Semantic roles & 50–950 ramp

primary
#2E0D4F
secondary
#5C8A2E
accent
#EE3994
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E0D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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