#2E1547#2E1547

#2E1547 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.090 H 303.7°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#2E1547
RGBrgb(46, 21, 71)
HSLhsl(270, 54%, 18%)
HSVhsv(270, 70%, 28%)
CMYKcmyk(35.2%, 70.4%, 0%, 72.2%)
CIE-LABlab(13.06, 24.07, -26.55)
CIE-LCHlch(13.06, 35.84, 312.20°)
OKLaboklab(26.09% 0.0503 -0.0753)
OKLCHoklch(26.09% 0.091 303.7)
XYZxyz(2.5320, 1.5721, 6.1301)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1547 #2E4715
analogous
#151547 #2E1547 #471547
triadic
#2E1547 #472E15 #15472E
tetradic
#2E1547 #471515 #2E4715 #154747
square
#2E1547 #471515 #2E4715 #154747
split-complementary
#2E1547 #474715 #154715
monochromatic
#0F0718 #0F0718 #2E1547 #4D2376 #6B31A5

Accessibility & contrast

On white

15.98
#2E1547 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2E1547 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1547
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1547#FFFFFF#000000##FFFFFF
##2E15471.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#072246
Tritanopia (blue-blind)
#29202B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1547;
/* rgb */ color: rgb(46, 21, 71);
/* oklch */ color: oklch(26.1% 0.090 303.7);
Tailwind
colors: {
  custom: {
    50: '#69547a',
    500: '#2e1547',
    950: '#000000',
  },
}
SCSS
$custom: #2e1547;
$custom-light: #69547a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1547",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 71
  },
  "hsl": {
    "h": 270,
    "s": 54.348,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26092,
    "c": 0.0905,
    "h": 303.7
  },
  "luminance": 0.01572
}

Semantic roles & 50–950 ramp

primary
#2E1547
secondary
#5C7F39
accent
#DE4A94
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2E1547

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

Preview Lab → · Contrast checker → · Palette generator →

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