#2E0847#2E0847

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

Color values

HEX#2E0847
RGBrgb(46, 8, 71)
HSLhsl(276, 80%, 15%)
HSVhsv(276, 89%, 28%)
CMYKcmyk(35.2%, 88.7%, 0%, 72.2%)
CIE-LABlab(10.63, 30.90, -30.49)
CIE-LCHlch(10.63, 43.41, 315.38°)
OKLaboklab(24.36% 0.0658 -0.0868)
OKLCHoklch(24.36% 0.109 307.2)
XYZxyz(2.3506, 1.2095, 6.0696)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0847 #214708
analogous
#0E0847 #2E0847 #470840
triadic
#2E0847 #472E08 #08472E
tetradic
#2E0847 #470E08 #214708 #084047
square
#2E0847 #470E08 #214708 #084047
split-complementary
#2E0847 #404708 #08470E
monochromatic
#12031C #12031C #2E0847 #520E7E #7514B5

Accessibility & contrast

On white

16.91
#2E0847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0847
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0847#FFFFFF#000000##FFFFFF
##2E08471.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C49
Deuteranopia (green-blind)
#001D46
Tritanopia (blue-blind)
#2A1828
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2e0847;
/* rgb */ color: rgb(46, 8, 71);
/* oklch */ color: oklch(24.4% 0.109 307.2);
Tailwind
colors: {
  custom: {
    50: '#6a4d7b',
    500: '#2e0847',
    950: '#000000',
  },
}
SCSS
$custom: #2e0847;
$custom-light: #6a4d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0847",
  "rgb": {
    "r": 46,
    "g": 8,
    "b": 71
  },
  "hsl": {
    "h": 276.19,
    "s": 79.747,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24361,
    "c": 0.10888,
    "h": 307.2
  },
  "luminance": 0.01209
}

Semantic roles & 50–950 ramp

primary
#2E0847
secondary
#4C8526
accent
#F63280
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070109
muted
#7A777B

Preview Lab

Preview with #2E0847

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

Preview Lab → · Contrast checker → · Palette generator →

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