#2E0846#2E0846

#2E0846 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.3% C 0.108 H 307.8°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#2E0846
RGBrgb(46, 8, 70)
HSLhsl(277, 79%, 15%)
HSVhsv(277, 89%, 27%)
CMYKcmyk(34.3%, 88.6%, 0%, 72.5%)
CIE-LABlab(10.53, 30.65, -29.94)
CIE-LCHlch(10.53, 42.85, 315.67°)
OKLaboklab(24.27% 0.0661 -0.0851)
OKLCHoklch(24.27% 0.108 307.8)
XYZxyz(2.3188, 1.1967, 5.9020)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0846 #204608
analogous
#0F0846 #2E0846 #46083F
triadic
#2E0846 #462E08 #08462E
tetradic
#2E0846 #460F08 #204608 #083F46
square
#2E0846 #460F08 #204608 #083F46
split-complementary
#2E0846 #3F4608 #08460F
monochromatic
#12031B #12031B #2E0846 #520E7D #7615B4

Accessibility & contrast

On white

16.94
#2E0846 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0846
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0846#FFFFFF#000000##FFFFFF
##2E08461.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e0846;
/* rgb */ color: rgb(46, 8, 70);
/* oklch */ color: oklch(24.3% 0.108 307.8);
Tailwind
colors: {
  custom: {
    50: '#6a4d7a',
    500: '#2e0846',
    950: '#000000',
  },
}
SCSS
$custom: #2e0846;
$custom-light: #6a4d7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0846",
  "rgb": {
    "r": 46,
    "g": 8,
    "b": 70
  },
  "hsl": {
    "h": 276.774,
    "s": 79.487,
    "l": 15.294
  },
  "oklch": {
    "l": 0.24267,
    "c": 0.10778,
    "h": 307.8
  },
  "luminance": 0.01197
}

Semantic roles & 50–950 ramp

primary
#2E0846
secondary
#4A8426
accent
#F6327E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #2E0846

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

Preview Lab → · Contrast checker → · Palette generator →

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