#2E1544#2E1544

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

Color values

HEX#2E1544
RGBrgb(46, 21, 68)
HSLhsl(272, 53%, 17%)
HSVhsv(272, 69%, 27%)
CMYKcmyk(32.4%, 69.1%, 0%, 73.3%)
CIE-LABlab(12.83, 23.21, -24.83)
CIE-LCHlch(12.83, 33.99, 313.06°)
OKLaboklab(25.85% 0.0504 -0.0702)
OKLCHoklch(25.85% 0.086 305.7)
XYZxyz(2.4380, 1.5345, 5.6355)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1544 #2B4415
analogous
#171544 #2E1544 #441542
triadic
#2E1544 #442E15 #15442E
tetradic
#2E1544 #441715 #2B4415 #154244
square
#2E1544 #441715 #2B4415 #154244
split-complementary
#2E1544 #424415 #154417
monochromatic
#100717 #100717 #2E1544 #4E2373 #6D32A2

Accessibility & contrast

On white

16.07
#2E1544 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1544
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1544#FFFFFF#000000##FFFFFF
##2E15441.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012045
Deuteranopia (green-blind)
#0B2143
Tritanopia (blue-blind)
#2A1F2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e1544;
/* rgb */ color: rgb(46, 21, 68);
/* oklch */ color: oklch(25.8% 0.086 305.7);
Tailwind
colors: {
  custom: {
    50: '#695478',
    500: '#2e1544',
    950: '#000000',
  },
}
SCSS
$custom: #2e1544;
$custom-light: #695478;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1544",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 68
  },
  "hsl": {
    "h": 271.915,
    "s": 52.809,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25848,
    "c": 0.08646,
    "h": 305.7
  },
  "luminance": 0.01535
}

Semantic roles & 50–950 ramp

primary
#2E1544
secondary
#587C39
accent
#DC4C8F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2E1544

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

Preview Lab → · Contrast checker → · Palette generator →

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