#2A042A#2A042A

#2A042A is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.6% C 0.083 H 328.1°. Best body text is #FFFFFF at 18.27:1 contrast (WCAG AA passes).

Color values

HEX#2A042A
RGBrgb(42, 4, 42)
HSLhsl(300, 83%, 9%)
HSVhsv(300, 90%, 16%)
CMYKcmyk(0%, 90.5%, 0%, 83.5%)
CIE-LABlab(6.74, 25.01, -15.75)
CIE-LCHlch(6.74, 29.56, 327.80°)
OKLaboklab(20.65% 0.0707 -0.044)
OKLCHoklch(20.65% 0.083 328.1)
XYZxyz(1.4162, 0.7463, 2.2595)
Luminance0.0075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A042A #042A04
analogous
#17042A #2A042A #2A0417
triadic
#2A042A #2A2A04 #042A2A
tetradic
#2A042A #2A1704 #042A04 #04172A
square
#2A042A #2A1704 #042A04 #04172A
split-complementary
#2A042A #172A04 #042A17
monochromatic
#1C031C #1C031C #2A042A #620962 #9A0F9A

Accessibility & contrast

On white

18.27
#2A042A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A042A
18.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A042A#FFFFFF#000000##FFFFFF
##2A042A1.0018.271.1518.27
#FFFFFF18.271.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122B
Deuteranopia (green-blind)
#0E1729
Tritanopia (blue-blind)
#2C0916
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2a042a;
/* rgb */ color: rgb(42, 4, 42);
/* oklch */ color: oklch(20.6% 0.083 328.1);
Tailwind
colors: {
  custom: {
    50: '#654863',
    500: '#2a042a',
    950: '#000000',
  },
}
SCSS
$custom: #2a042a;
$custom-light: #654863;
$custom-dark: #000000;
JSON
{
  "hex": "#2a042a",
  "rgb": {
    "r": 42,
    "g": 4,
    "b": 42
  },
  "hsl": {
    "h": 300,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.20646,
    "c": 0.08327,
    "h": 328.1
  },
  "luminance": 0.00746
}

Semantic roles & 50–950 ramp

primary
#2A042A
secondary
#1D6D1D
accent
#F92F2F
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#060105
muted
#7A7779

Preview Lab

Preview with #2A042A

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

Preview Lab → · Contrast checker → · Palette generator →

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