#2E1347#2E1347

#2E1347 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.094 H 304.4°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#2E1347
RGBrgb(46, 19, 71)
HSLhsl(271, 58%, 18%)
HSVhsv(271, 73%, 28%)
CMYKcmyk(35.2%, 73.2%, 0%, 72.2%)
CIE-LABlab(12.62, 25.28, -27.26)
CIE-LCHlch(12.62, 37.18, 312.84°)
OKLaboklab(25.77% 0.053 -0.0773)
OKLCHoklch(25.77% 0.094 304.4)
XYZxyz(2.4967, 1.5015, 6.1183)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1347 #2C4713
analogous
#141347 #2E1347 #471346
triadic
#2E1347 #472E13 #13472E
tetradic
#2E1347 #471413 #2C4713 #134647
square
#2E1347 #471413 #2C4713 #134647
split-complementary
#2E1347 #464713 #134714
monochromatic
#100618 #100618 #2E1347 #4D2077 #6D2DA8

Accessibility & contrast

On white

16.15
#2E1347 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2E1347 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1347
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1347#FFFFFF#000000##FFFFFF
##2E13471.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002049
Deuteranopia (green-blind)
#042146
Tritanopia (blue-blind)
#291E2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e1347;
/* rgb */ color: rgb(46, 19, 71);
/* oklch */ color: oklch(25.8% 0.094 304.4);
Tailwind
colors: {
  custom: {
    50: '#69537b',
    500: '#2e1347',
    950: '#000000',
  },
}
SCSS
$custom: #2e1347;
$custom-light: #69537b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1347",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 71
  },
  "hsl": {
    "h": 271.154,
    "s": 57.778,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25773,
    "c": 0.09378,
    "h": 304.4
  },
  "luminance": 0.01502
}

Semantic roles & 50–950 ramp

primary
#2E1347
secondary
#598036
accent
#E14791
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2E1347

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

Preview Lab → · Contrast checker → · Palette generator →

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