#2A1541#2A1541

#2A1541 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.081 H 303.0°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#2A1541
RGBrgb(42, 21, 65)
HSLhsl(269, 51%, 17%)
HSVhsv(269, 68%, 25%)
CMYKcmyk(35.4%, 67.7%, 0%, 74.5%)
CIE-LABlab(12.03, 21.19, -24.04)
CIE-LCHlch(12.03, 32.05, 311.40°)
OKLaboklab(25.07% 0.0442 -0.0681)
OKLCHoklch(25.07% 0.081 303)
XYZxyz(2.1769, 1.4102, 5.1575)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1541 #2C4115
analogous
#151641 #2A1541 #401541
triadic
#2A1541 #412A15 #15412A
tetradic
#2A1541 #411516 #2C4115 #154140
square
#2A1541 #411516 #2C4115 #154140
split-complementary
#2A1541 #414015 #164115
monochromatic
#0F0717 #0F0717 #2A1541 #48246F #66339E

Accessibility & contrast

On white

16.38
#2A1541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1541
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1541#FFFFFF#000000##FFFFFF
##2A15411.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021F42
Deuteranopia (green-blind)
#0A1F40
Tritanopia (blue-blind)
#261E28
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a1541;
/* rgb */ color: rgb(42, 21, 65);
/* oklch */ color: oklch(25.1% 0.081 303.0);
Tailwind
colors: {
  custom: {
    50: '#665376',
    500: '#2a1541',
    950: '#000000',
  },
}
SCSS
$custom: #2a1541;
$custom-light: #665376;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1541",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 65
  },
  "hsl": {
    "h": 268.636,
    "s": 51.163,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25065,
    "c": 0.08114,
    "h": 303
  },
  "luminance": 0.0141
}

Semantic roles & 50–950 ramp

primary
#2A1541
secondary
#5A7939
accent
#DB4D97
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A1541

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

Preview Lab → · Contrast checker → · Palette generator →

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