#2A042B#2A042B

#2A042B is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.7% C 0.084 H 327.0°. Best body text is #FFFFFF at 18.25:1 contrast (WCAG AA passes).

Color values

HEX#2A042B
RGBrgb(42, 4, 43)
HSLhsl(298, 83%, 9%)
HSVhsv(298, 91%, 17%)
CMYKcmyk(2.3%, 90.7%, 0%, 83.1%)
CIE-LABlab(6.81, 25.25, -16.40)
CIE-LCHlch(6.81, 30.11, 327.00°)
OKLaboklab(20.72% 0.0706 -0.0459)
OKLCHoklch(20.72% 0.084 327)
XYZxyz(1.4343, 0.7536, 2.3549)
Luminance0.0075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A042B #052B04
analogous
#17042B #2A042B #2B0419
triadic
#2A042B #2B2A04 #042B2A
tetradic
#2A042B #2B1704 #052B04 #04192B
square
#2A042B #2B1704 #052B04 #04192B
split-complementary
#2A042B #192B04 #042B17
monochromatic
#1B031C #1B031C #2A042B #610963 #970E9B

Accessibility & contrast

On white

18.25
#2A042B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A042B
18.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A042B#FFFFFF#000000##FFFFFF
##2A042B1.0018.251.1518.25
#FFFFFF18.251.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122C
Deuteranopia (green-blind)
#0D172A
Tritanopia (blue-blind)
#2B0916
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2a042b;
/* rgb */ color: rgb(42, 4, 43);
/* oklch */ color: oklch(20.7% 0.084 327.0);
Tailwind
colors: {
  custom: {
    50: '#654864',
    500: '#2a042b',
    950: '#000000',
  },
}
SCSS
$custom: #2a042b;
$custom-light: #654864;
$custom-dark: #000000;
JSON
{
  "hex": "#2a042b",
  "rgb": {
    "r": 42,
    "g": 4,
    "b": 43
  },
  "hsl": {
    "h": 298.462,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.20722,
    "c": 0.08423,
    "h": 327
  },
  "luminance": 0.00753
}

Semantic roles & 50–950 ramp

primary
#2A042B
secondary
#1F6E1D
accent
#F92E34
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060105
muted
#7A777A

Preview Lab

Preview with #2A042B

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

Preview Lab → · Contrast checker → · Palette generator →

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