#2A1341#2A1341

#2A1341 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.085 H 303.8°. Best body text is #FFFFFF at 16.56:1 contrast (WCAG AA passes).

Color values

HEX#2A1341
RGBrgb(42, 19, 65)
HSLhsl(270, 55%, 16%)
HSVhsv(270, 71%, 25%)
CMYKcmyk(35.4%, 70.8%, 0%, 74.5%)
CIE-LABlab(11.55, 22.47, -24.81)
CIE-LCHlch(11.55, 33.48, 312.17°)
OKLaboklab(24.72% 0.0471 -0.0703)
OKLCHoklch(24.72% 0.085 303.8)
XYZxyz(2.1416, 1.3396, 5.1458)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1341 #2A4113
analogous
#131341 #2A1341 #411341
triadic
#2A1341 #412A13 #13412A
tetradic
#2A1341 #411313 #2A4113 #134141
square
#2A1341 #411313 #2A4113 #134141
split-complementary
#2A1341 #414113 #134113
monochromatic
#0F0718 #0F0718 #2A1341 #492170 #672FA0

Accessibility & contrast

On white

16.56
#2A1341 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2A1341 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1341
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1341#FFFFFF#000000##FFFFFF
##2A13411.0016.561.2716.56
#FFFFFF16.561.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E42
Deuteranopia (green-blind)
#071F40
Tritanopia (blue-blind)
#261D27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a1341;
/* rgb */ color: rgb(42, 19, 65);
/* oklch */ color: oklch(24.7% 0.085 303.8);
Tailwind
colors: {
  custom: {
    50: '#665276',
    500: '#2a1341',
    950: '#000000',
  },
}
SCSS
$custom: #2a1341;
$custom-light: #665276;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1341",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 65
  },
  "hsl": {
    "h": 270,
    "s": 54.762,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24719,
    "c": 0.08462,
    "h": 303.8
  },
  "luminance": 0.0134
}

Semantic roles & 50–950 ramp

primary
#2A1341
secondary
#587A36
accent
#DE4A94
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A1341

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

Preview Lab → · Contrast checker → · Palette generator →

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