#2E0946#2E0946

#2E0946 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.4% C 0.107 H 307.6°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#2E0946
RGBrgb(46, 9, 70)
HSLhsl(276, 77%, 15%)
HSVhsv(276, 87%, 27%)
CMYKcmyk(34.3%, 87.1%, 0%, 72.5%)
CIE-LABlab(10.69, 30.19, -29.68)
CIE-LCHlch(10.69, 42.34, 315.48°)
OKLaboklab(24.38% 0.065 -0.0844)
OKLCHoklch(24.38% 0.107 307.6)
XYZxyz(2.3297, 1.2184, 5.9056)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0946 #214609
analogous
#0F0946 #2E0946 #46093F
triadic
#2E0946 #462E09 #09462E
tetradic
#2E0946 #460F09 #214609 #093F46
square
#2E0946 #460F09 #214609 #093F46
split-complementary
#2E0946 #3F4609 #09460F
monochromatic
#12031B #12031B #2E0946 #52107C #7517B2

Accessibility & contrast

On white

16.89
#2E0946 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0946
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0946#FFFFFF#000000##FFFFFF
##2E09461.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C48
Deuteranopia (green-blind)
#001D45
Tritanopia (blue-blind)
#2A1927
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2e0946;
/* rgb */ color: rgb(46, 9, 70);
/* oklch */ color: oklch(24.4% 0.107 307.6);
Tailwind
colors: {
  custom: {
    50: '#6a4d7a',
    500: '#2e0946',
    950: '#000000',
  },
}
SCSS
$custom: #2e0946;
$custom-light: #6a4d7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0946",
  "rgb": {
    "r": 46,
    "g": 9,
    "b": 70
  },
  "hsl": {
    "h": 276.393,
    "s": 77.215,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24378,
    "c": 0.10654,
    "h": 307.6
  },
  "luminance": 0.01218
}

Semantic roles & 50–950 ramp

primary
#2E0946
secondary
#4C8427
accent
#F4347F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #2E0946

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

Preview Lab → · Contrast checker → · Palette generator →

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