#2A042D#2A042D

#2A042D is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.9% C 0.086 H 324.9°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#2A042D
RGBrgb(42, 4, 45)
HSLhsl(296, 84%, 10%)
HSVhsv(296, 91%, 18%)
CMYKcmyk(6.7%, 91.1%, 0%, 82.4%)
CIE-LABlab(6.94, 25.74, -17.69)
CIE-LCHlch(6.94, 31.23, 325.50°)
OKLaboklab(20.88% 0.0705 -0.0495)
OKLCHoklch(20.88% 0.086 324.9)
XYZxyz(1.4719, 0.7686, 2.5529)
Luminance0.0077 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A042D #072D04
analogous
#16042D #2A042D #2D041C
triadic
#2A042D #2D2A04 #042D2A
tetradic
#2A042D #2D1604 #072D04 #041C2D
square
#2A042D #2D1604 #072D04 #041C2D
split-complementary
#2A042D #1C2D04 #042D16
monochromatic
#1A021C #1A021C #2A042D #5E0965 #930E9D

Accessibility & contrast

On white

18.20
#2A042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#2A042D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A042D
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A042D#FFFFFF#000000##FFFFFF
##2A042D1.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122E
Deuteranopia (green-blind)
#0C172C
Tritanopia (blue-blind)
#2B0A18
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2a042d;
/* rgb */ color: rgb(42, 4, 45);
/* oklch */ color: oklch(20.9% 0.086 324.9);
Tailwind
colors: {
  custom: {
    50: '#654866',
    500: '#2a042d',
    950: '#000000',
  },
}
SCSS
$custom: #2a042d;
$custom-light: #654866;
$custom-dark: #000000;
JSON
{
  "hex": "#2a042d",
  "rgb": {
    "r": 42,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 295.61,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.20877,
    "c": 0.08617,
    "h": 324.9
  },
  "luminance": 0.00769
}

Semantic roles & 50–950 ramp

primary
#2A042D
secondary
#23701D
accent
#FA2E3D
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A042D

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

Preview Lab → · Contrast checker → · Palette generator →

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