#2E1047#2E1047

#2E1047 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.098 H 305.3°. Best body text is #FFFFFF at 16.39:1 contrast (WCAG AA passes).

Color values

HEX#2E1047
RGBrgb(46, 16, 71)
HSLhsl(273, 63%, 17%)
HSVhsv(273, 77%, 28%)
CMYKcmyk(35.2%, 77.5%, 0%, 72.2%)
CIE-LABlab(12.00, 26.99, -28.26)
CIE-LCHlch(12.00, 39.08, 313.68°)
OKLaboklab(25.33% 0.0569 -0.0803)
OKLCHoklch(25.33% 0.098 305.3)
XYZxyz(2.4491, 1.4064, 6.1024)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1047 #294710
analogous
#131047 #2E1047 #471045
triadic
#2E1047 #472E10 #10472E
tetradic
#2E1047 #471310 #294710 #104547
square
#2E1047 #471310 #294710 #104547
split-complementary
#2E1047 #454710 #104713
monochromatic
#100619 #100619 #2E1047 #4E1B79 #6F27AB

Accessibility & contrast

On white

16.39
#2E1047 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2E1047 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1047
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1047#FFFFFF#000000##FFFFFF
##2E10471.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F49
Deuteranopia (green-blind)
#002046
Tritanopia (blue-blind)
#291D2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e1047;
/* rgb */ color: rgb(46, 16, 71);
/* oklch */ color: oklch(25.3% 0.098 305.3);
Tailwind
colors: {
  custom: {
    50: '#6a517b',
    500: '#2e1047',
    950: '#000000',
  },
}
SCSS
$custom: #2e1047;
$custom-light: #6a517b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1047",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 71
  },
  "hsl": {
    "h": 272.727,
    "s": 63.218,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25331,
    "c": 0.09841,
    "h": 305.3
  },
  "luminance": 0.01406
}

Semantic roles & 50–950 ramp

primary
#2E1047
secondary
#568132
accent
#E6428C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2E1047

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

Preview Lab → · Contrast checker → · Palette generator →

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