#2E0A42#2E0A42

#2E0A42 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.101 H 310.1°. Best body text is #FFFFFF at 16.96:1 contrast (WCAG AA passes).

Color values

HEX#2E0A42
RGBrgb(46, 10, 66)
HSLhsl(279, 74%, 15%)
HSVhsv(279, 85%, 26%)
CMYKcmyk(30.3%, 84.8%, 0%, 74.1%)
CIE-LABlab(10.49, 28.70, -27.19)
CIE-LCHlch(10.49, 39.53, 316.54°)
OKLaboklab(24.13% 0.0649 -0.0771)
OKLCHoklch(24.13% 0.101 310.1)
XYZxyz(2.2184, 1.1913, 5.2663)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0A42 #1E420A
analogous
#120A42 #2E0A42 #420A3A
triadic
#2E0A42 #422E0A #0A422E
tetradic
#2E0A42 #42120A #1E420A #0A3A42
square
#2E0A42 #42120A #1E420A #0A3A42
split-complementary
#2E0A42 #3A420A #0A4212
monochromatic
#13041B #13041B #2E0A42 #531277 #781AAC

Accessibility & contrast

On white

16.96
#2E0A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2E0A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0A42
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0A42#FFFFFF#000000##FFFFFF
##2E0A421.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B44
Deuteranopia (green-blind)
#011D41
Tritanopia (blue-blind)
#2B1725
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2e0a42;
/* rgb */ color: rgb(46, 10, 66);
/* oklch */ color: oklch(24.1% 0.101 310.1);
Tailwind
colors: {
  custom: {
    50: '#6a4d77',
    500: '#2e0a42',
    950: '#000000',
  },
}
SCSS
$custom: #2e0a42;
$custom-light: #6a4d77;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0a42",
  "rgb": {
    "r": 46,
    "g": 10,
    "b": 66
  },
  "hsl": {
    "h": 278.571,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24125,
    "c": 0.10079,
    "h": 310.1
  },
  "luminance": 0.01191
}

Semantic roles & 50–950 ramp

primary
#2E0A42
secondary
#487F29
accent
#F03779
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2E0A42

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

Preview Lab → · Contrast checker → · Palette generator →

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