#2E1147#2E1147

#2E1147 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.097 H 305.1°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#2E1147
RGBrgb(46, 17, 71)
HSLhsl(272, 61%, 17%)
HSVhsv(272, 76%, 28%)
CMYKcmyk(35.2%, 76.1%, 0%, 72.2%)
CIE-LABlab(12.20, 26.43, -27.94)
CIE-LCHlch(12.20, 38.46, 313.41°)
OKLaboklab(25.47% 0.0557 -0.0793)
OKLCHoklch(25.47% 0.097 305.1)
XYZxyz(2.4642, 1.4367, 6.1075)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1147 #2A4711
analogous
#131147 #2E1147 #471145
triadic
#2E1147 #472E11 #11472E
tetradic
#2E1147 #471311 #2A4711 #114547
square
#2E1147 #471311 #2A4711 #114547
split-complementary
#2E1147 #454711 #114713
monochromatic
#100619 #100619 #2E1147 #4E1D78 #6E29AA

Accessibility & contrast

On white

16.31
#2E1147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2E1147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1147
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1147#FFFFFF#000000##FFFFFF
##2E11471.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F49
Deuteranopia (green-blind)
#022046
Tritanopia (blue-blind)
#291D2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e1147;
/* rgb */ color: rgb(46, 17, 71);
/* oklch */ color: oklch(25.5% 0.097 305.1);
Tailwind
colors: {
  custom: {
    50: '#69517b',
    500: '#2e1147',
    950: '#000000',
  },
}
SCSS
$custom: #2e1147;
$custom-light: #69517b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1147",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 272.222,
    "s": 61.364,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25473,
    "c": 0.0969,
    "h": 305.1
  },
  "luminance": 0.01437
}

Semantic roles & 50–950 ramp

primary
#2E1147
secondary
#578133
accent
#E4438E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2E1147

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

Preview Lab → · Contrast checker → · Palette generator →

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