#2E1546#2E1546

#2E1546 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.089 H 304.4°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#2E1546
RGBrgb(46, 21, 70)
HSLhsl(271, 54%, 18%)
HSVhsv(271, 70%, 27%)
CMYKcmyk(34.3%, 70%, 0%, 72.5%)
CIE-LABlab(12.98, 23.78, -25.98)
CIE-LCHlch(12.98, 35.22, 312.47°)
OKLaboklab(26.01% 0.0503 -0.0736)
OKLCHoklch(26.01% 0.089 304.4)
XYZxyz(2.5001, 1.5594, 5.9624)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1546 #2D4615
analogous
#151546 #2E1546 #461545
triadic
#2E1546 #462E15 #15462E
tetradic
#2E1546 #461515 #2D4615 #154546
square
#2E1546 #461515 #2D4615 #154546
split-complementary
#2E1546 #454615 #154615
monochromatic
#0F0718 #0F0718 #2E1546 #4D2375 #6C31A4

Accessibility & contrast

On white

16.01
#2E1546 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1546
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1546#FFFFFF#000000##FFFFFF
##2E15461.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002148
Deuteranopia (green-blind)
#082145
Tritanopia (blue-blind)
#2A1F2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e1546;
/* rgb */ color: rgb(46, 21, 70);
/* oklch */ color: oklch(26.0% 0.089 304.4);
Tailwind
colors: {
  custom: {
    50: '#69547a',
    500: '#2e1546',
    950: '#000000',
  },
}
SCSS
$custom: #2e1546;
$custom-light: #69547a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1546",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 70
  },
  "hsl": {
    "h": 270.612,
    "s": 53.846,
    "l": 17.843
  },
  "oklch": {
    "l": 0.2601,
    "c": 0.08916,
    "h": 304.4
  },
  "luminance": 0.01559
}

Semantic roles & 50–950 ramp

primary
#2E1546
secondary
#5B7E39
accent
#DD4B92
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2E1546

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

Preview Lab → · Contrast checker → · Palette generator →

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