#2A1335#2A1335

#2A1335 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.8% C 0.068 H 313.6°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#2A1335
RGBrgb(42, 19, 53)
HSLhsl(281, 47%, 14%)
HSVhsv(281, 64%, 21%)
CMYKcmyk(20.8%, 64.2%, 0%, 79.2%)
CIE-LABlab(10.67, 19.07, -17.65)
CIE-LCHlch(10.67, 25.98, 317.22°)
OKLaboklab(23.79% 0.047 -0.0493)
OKLCHoklch(23.79% 0.068 313.6)
XYZxyz(1.8302, 1.2151, 3.5056)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1335 #1E3513
analogous
#191335 #2A1335 #35132F
triadic
#2A1335 #352A13 #13352A
tetradic
#2A1335 #351913 #1E3513 #132F35
square
#2A1335 #351913 #1E3513 #132F35
split-complementary
#2A1335 #2F3513 #133519
monochromatic
#120817 #120817 #2A1335 #4E2362 #71338F

Accessibility & contrast

On white

16.89
#2A1335 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2A1335 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1335
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1335#FFFFFF#000000##FFFFFF
##2A13351.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1C36
Deuteranopia (green-blind)
#121D34
Tritanopia (blue-blind)
#291921
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a1335;
/* rgb */ color: rgb(42, 19, 53);
/* oklch */ color: oklch(23.8% 0.068 313.6);
Tailwind
colors: {
  custom: {
    50: '#65526c',
    500: '#2a1335',
    950: '#000000',
  },
}
SCSS
$custom: #2a1335;
$custom-light: #65526c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1335",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 53
  },
  "hsl": {
    "h": 280.588,
    "s": 47.222,
    "l": 14.118
  },
  "oklch": {
    "l": 0.23792,
    "c": 0.06812,
    "h": 313.6
  },
  "luminance": 0.01215
}

Semantic roles & 50–950 ramp

primary
#2A1335
secondary
#486D37
accent
#D7517C
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050207
muted
#7A787A

Preview Lab

Preview with #2A1335

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

Preview Lab → · Contrast checker → · Palette generator →

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