#2E0947#2E0947

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

Color values

HEX#2E0947
RGBrgb(46, 9, 71)
HSLhsl(276, 78%, 16%)
HSVhsv(276, 87%, 28%)
CMYKcmyk(35.2%, 87.3%, 0%, 72.2%)
CIE-LABlab(10.79, 30.44, -30.23)
CIE-LCHlch(10.79, 42.91, 315.20°)
OKLaboklab(24.47% 0.0648 -0.086)
OKLCHoklch(24.47% 0.108 307)
XYZxyz(2.3615, 1.2312, 6.0732)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0947 #224709
analogous
#0F0947 #2E0947 #470941
triadic
#2E0947 #472E09 #09472E
tetradic
#2E0947 #470F09 #224709 #094147
square
#2E0947 #470F09 #224709 #094147
split-complementary
#2E0947 #414709 #09470F
monochromatic
#12031B #12031B #2E0947 #51107D #7417B4

Accessibility & contrast

On white

16.85
#2E0947 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2E0947 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0947
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0947#FFFFFF#000000##FFFFFF
##2E09471.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e0947;
/* rgb */ color: rgb(46, 9, 71);
/* oklch */ color: oklch(24.5% 0.108 307.0);
Tailwind
colors: {
  custom: {
    50: '#6a4d7b',
    500: '#2e0947',
    950: '#000000',
  },
}
SCSS
$custom: #2e0947;
$custom-light: #6a4d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0947",
  "rgb": {
    "r": 46,
    "g": 9,
    "b": 71
  },
  "hsl": {
    "h": 275.806,
    "s": 77.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24472,
    "c": 0.10766,
    "h": 307
  },
  "luminance": 0.01231
}

Semantic roles & 50–950 ramp

primary
#2E0947
secondary
#4D8427
accent
#F43481
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070109
muted
#7A777B

Preview Lab

Preview with #2E0947

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

Preview Lab → · Contrast checker → · Palette generator →

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